Share via


MemoryStorage 類別

定義

使用記憶體內部字典的儲存層。

public class MemoryStorage : Microsoft.Bot.Builder.IStorage
type MemoryStorage = class
    interface IStorage
Public Class MemoryStorage
Implements IStorage
繼承
MemoryStorage
實作

建構函式

MemoryStorage(Dictionary<String,JObject>)

初始化 MemoryStorage 類別的新執行個體。

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

初始化 MemoryStorage 類別的新執行個體。

方法

DeleteAsync(String[], CancellationToken)

從儲存體中刪除儲存體專案。

ReadAsync(String[], CancellationToken)

從儲存體讀取儲存體專案。

WriteAsync(IDictionary<String,Object>, CancellationToken)

將儲存體專案寫入儲存體。

擴充方法

ReadAsync<TStoreItem>(IStorage, String[], CancellationToken)

從狀態儲存體取得和強型別 物件的集合 IStoreItem

適用於