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, JsonSerializer)

CosmosDbPartitionedStorage クラスの新しいインスタンスを初期化します。 提供されたCosmosDBの認証情報、データベースID、コレクションIDを使用します。

CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions)

CosmosDbPartitionedStorage クラスの新しいインスタンスを初期化します。 指定された CosmosDB 資格情報、データベース ID、およびコンテナー ID を使用します。

メソッド

名前 説明
DeleteAsync(String[], CancellationToken)

Cosmos DB コンテナーから 1 つ以上の項目を削除します。

Dispose()

オブジェクトインスタンスを破棄し、クラスが所有する関連オブジェクトを解放します。

Dispose(Boolean)

クラスが使用するオブジェクトを処分します。

ReadAsync(String[], CancellationToken)

Cosmos DBコンテナから一致するキーを持つアイテムを1つ以上読み取ります。

WriteAsync(IDictionary<String,Object>, CancellationToken)

Cosmos DB コンテナーに 1 つ以上の項目を挿入または更新します。

拡張メソッド

名前 説明
ReadAsync<TStoreItem>(IStorage, String[], CancellationToken)

状態ストレージから IStoreItem オブジェクトの集合を取得し、強力に型付けします。

適用対象