Created
January 10, 2024 19:10
-
-
Save manishtiwari25/a828ea4a178a0778cdf929a8e5457679 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JsonSerializerOptions jsonSerializerOptions = new JsonSerializerOptions() | |
{ | |
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull | |
}; | |
CosmosSystemTextJsonSerializer cosmosSystemTextJsonSerializer = new CosmosSystemTextJsonSerializer(jsonSerializerOptions); | |
CosmosClientOptions cosmosClientOptions = new CosmosClientOptions() | |
{ | |
ApplicationName = "Test", | |
Serializer = cosmosSystemTextJsonSerializer | |
}; | |
var client = new CosmosClient(endpoint, authKey, cosmosClientOptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment