public CosmosClient CreateCosmosClient(CosmosServiceOptions cosmosServiceOptions) { return(new CosmosClient ( cosmosServiceOptions.ConnectionString, new CosmosClientOptions { SerializerOptions = new CosmosSerializationOptions { PropertyNamingPolicy = CosmosPropertyNamingPolicy.CamelCase } } )); }
public Container GetContainer(CosmosClient cosmosClient, CosmosServiceOptions options) { return(cosmosClient.GetContainer(options.DatabaseId, options.ContainerId)); }