Created
June 2, 2023 01:24
-
-
Save brendan-nobadthing/f5af5fb1dedb86583af16437ab12c8c8 to your computer and use it in GitHub Desktop.
CosmosDB BulkExecution
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
var serviceProvider = new ServiceCollection() | |
.AddSingleton(new CosmosClient( | |
config["CosmosConnectionString"], | |
new CosmosClientOptions | |
{ | |
AllowBulkExecution = true, | |
ApplicationName = "CosmosPartitionsTest", | |
ConnectionMode = ConnectionMode.Direct, | |
EnableContentResponseOnWrite = false | |
}) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment