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 对象。

适用于