CosmosDbStorage CosmosDbStorage Constructors

Definition

Overloads

CosmosDbStorage(CosmosDbStorageOptions) CosmosDbStorage(CosmosDbStorageOptions)

Initializes a new instance of the CosmosDbStorage class. using the provided CosmosDB credentials, database ID, and collection ID.

CosmosDbStorage(IDocumentClient, CosmosDbCustomClientOptions) CosmosDbStorage(IDocumentClient, CosmosDbCustomClientOptions)

Initializes a new instance of the CosmosDbStorage class. This constructor should only be used if the default behavior of the DocumentClient needs to be changed. The CosmosDbStorage(CosmosDbStorageOptions) constructor is preferer for most cases.

CosmosDbStorage(CosmosDbStorageOptions) CosmosDbStorage(CosmosDbStorageOptions)

Initializes a new instance of the CosmosDbStorage class. using the provided CosmosDB credentials, database ID, and collection ID.

public CosmosDbStorage (Microsoft.Bot.Builder.Azure.CosmosDbStorageOptions cosmosDbStorageOptions);
new Microsoft.Bot.Builder.Azure.CosmosDbStorage : Microsoft.Bot.Builder.Azure.CosmosDbStorageOptions -> Microsoft.Bot.Builder.Azure.CosmosDbStorage

Parameters

cosmosDbStorageOptions
CosmosDbStorageOptions CosmosDbStorageOptions

Cosmos DB storage configuration options.

CosmosDbStorage(IDocumentClient, CosmosDbCustomClientOptions) CosmosDbStorage(IDocumentClient, CosmosDbCustomClientOptions)

Initializes a new instance of the CosmosDbStorage class. This constructor should only be used if the default behavior of the DocumentClient needs to be changed. The CosmosDbStorage(CosmosDbStorageOptions) constructor is preferer for most cases.

public CosmosDbStorage (Microsoft.Azure.Documents.IDocumentClient documentClient, Microsoft.Bot.Builder.Azure.CosmosDbCustomClientOptions cosmosDbCustomClientOptions);
new Microsoft.Bot.Builder.Azure.CosmosDbStorage : Microsoft.Azure.Documents.IDocumentClient * Microsoft.Bot.Builder.Azure.CosmosDbCustomClientOptions -> Microsoft.Bot.Builder.Azure.CosmosDbStorage

Parameters

documentClient
IDocumentClient IDocumentClient

The custom implementation of IDocumentClient.

cosmosDbCustomClientOptions
CosmosDbCustomClientOptions CosmosDbCustomClientOptions

Custom client configuration options.

Applies to