Skip to content

CosmosOptions Methods

Options for Azure Cosmos DB storage.

ConfigureCosmosClient(string, AzureKeyCredential)

View source
public void ConfigureCosmosClient(string accountEndpoint, AzureKeyCredential authKeyOrResourceTokenCredential)
Configures the Cosmos DB client.

Parameters

accountEndpointstring
The account endpoint. In the form of
https://{databaseaccount}.documents.azure.com:443/
, https://learn.microsoft.com/rest/api/cosmos-db/cosmosdb-resource-uri-syntax-for-rest
authKeyOrResourceTokenCredentialAzureKeyCredential
Azure.AzureKeyCredential with master-key or resource token.