CosmosDbPartitionedStorage 类

定义

使用机器人的分区实现基于 CosmosDB 的存储提供程序。

public class CosmosDbPartitionedStorage : IDisposable, Microsoft.Bot.Builder.IStorage
type CosmosDbPartitionedStorage = class
    interface IStorage
    interface IDisposable
Public Class CosmosDbPartitionedStorage
Implements IDisposable, IStorage
继承
CosmosDbPartitionedStorage
实现

构造函数

CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions)

初始化 CosmosDbPartitionedStorage 类的新实例。 使用提供的 CosmosDB 凭据、数据库 ID 和容器 ID。

CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions, JsonSerializer)

初始化 CosmosDbPartitionedStorage 类的新实例。 使用提供的 CosmosDB 凭据、数据库 ID 和集合 ID。

方法

DeleteAsync(String[], CancellationToken)

从 Cosmos DB 容器中删除一个或多个项。

Dispose()

释放对象实例并释放类拥有的任何相关对象。

Dispose(Boolean)

释放 类使用的对象。

ReadAsync(String[], CancellationToken)

从 Cosmos DB 容器中读取一个或多个具有匹配键的项。

WriteAsync(IDictionary<String,Object>, CancellationToken)

将一个或多个项插入或更新到 Cosmos DB 容器中。

扩展方法

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

从状态存储获取并强类型对象的集合 IStoreItem

适用于