CosmosDbPartitionedStorage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements an CosmosDB based storage provider using partitioning for a bot.
public class CosmosDbPartitionedStorage : IDisposable, Microsoft.Bot.Builder.IStorage
type CosmosDbPartitionedStorage = class
interface IStorage
interface IDisposable
Public Class CosmosDbPartitionedStorage
Implements IDisposable, IStorage
- Inheritance
-
CosmosDbPartitionedStorage
- Implements
Constructors
CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions, JsonSerializer) |
Initializes a new instance of the CosmosDbPartitionedStorage class. using the provided CosmosDB credentials, database ID, and collection ID. |
CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions) |
Initializes a new instance of the CosmosDbPartitionedStorage class. using the provided CosmosDB credentials, database ID, and container ID. |
Methods
DeleteAsync(String[], CancellationToken) |
Deletes one or more items from the Cosmos DB container. |
Dispose() |
Disposes the object instance and releases any related objects owned by the class. |
Dispose(Boolean) |
Disposes objects used by the class. |
ReadAsync(String[], CancellationToken) |
Reads one or more items with matching keys from the Cosmos DB container. |
WriteAsync(IDictionary<String,Object>, CancellationToken) |
Inserts or updates one or more items into the Cosmos DB container. |
Extension Methods
ReadAsync<TStoreItem>(IStorage, String[], CancellationToken) |
Gets and strongly types a collection of IStoreItem objects from state storage. |