Jaa


CosmosDbPartitionedStorage Constructors

Definition

Overloads

CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions)

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

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.

public CosmosDbPartitionedStorage (Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorageOptions cosmosDbStorageOptions);
new Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorage : Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorageOptions -> Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorage
Public Sub New (cosmosDbStorageOptions As CosmosDbPartitionedStorageOptions)

Parameters

cosmosDbStorageOptions
CosmosDbPartitionedStorageOptions

Cosmos DB partitioned storage configuration options.

Applies to

CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions, JsonSerializer)

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

public CosmosDbPartitionedStorage (Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorageOptions cosmosDbStorageOptions, Newtonsoft.Json.JsonSerializer jsonSerializer);
new Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorage : Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorageOptions * Newtonsoft.Json.JsonSerializer -> Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorage
Public Sub New (cosmosDbStorageOptions As CosmosDbPartitionedStorageOptions, jsonSerializer As JsonSerializer)

Parameters

cosmosDbStorageOptions
CosmosDbPartitionedStorageOptions

Cosmos DB partitioned storage configuration options.

jsonSerializer
Newtonsoft.Json.JsonSerializer

If passing in a custom JsonSerializer, we recommend the following settings:

jsonSerializer.TypeNameHandling = TypeNameHandling.All.

jsonSerializer.NullValueHandling = NullValueHandling.Include.

jsonSerializer.ContractResolver = new DefaultContractResolver().

jsonSerializer.SerializationBinder = new AllowedTypesSerializationBinder().

Applies to