Skip to content

Instantly share code, notes, and snippets.

View tombiddulph's full-sized avatar

Tom Biddulph tombiddulph

View GitHub Profile
@tombiddulph
tombiddulph / output.txt
Last active September 25, 2023 11:55
Dotnet format output
dotnet format OpenTelemetry.sln --no-restore --verify-no-changes -v diagnostic
The dotnet runtime version is '8.0.0-rc.1.23419.4'.
The dotnet CLI version is '8.0.100-rc.1.23463.5'.
Using MSBuild.exe located in '/usr/local/share/dotnet/sdk/8.0.100-rc.1.23463.5/'.
Formatting code files in workspace '/Users//Projects/opentelemetry-dotnet/OpenTelemetry.sln'.
Loading workspace.
Project OpenTelemetry(net6.0) is using configuration from '/Users//Projects/opentelemetry-dotnet/.editorconfig'.
Project OpenTelemetry(net6.0) is using configuration from '/Users//Projects/opentelemetry-dotnet/src/OpenTelemetry/obj/Debug/net6.0/OpenTelemetry.GeneratedMSBuildEditorConfig.editorconfig'.
Project OpenTelemetry(net6.0) is using configuration from '/usr/local/share/dotnet/sdk/8.0.100-rc.1.23463.5/Sdks/Microsoft.NET.Sdk/analyzers/build/config/analysislevel_6_default.globalconfig'.
@tombiddulph
tombiddulph / program.cs
Created September 1, 2020 16:25
Configuring Cosmos throughput
CosmosClient client = new CosmosClient(connectionString);
Database db = client.GetDatabase("test-db");
Container container = db.GetContainer("test-container");
const int rus = 1000;
ThroughputResponse manualDbThroughput = await db.ReplaceThroughputAsync(ThroughputProperties.CreateManualThroughput(rus));
ThroughputResponse autoDbThroughput = await db.ReplaceThroughputAsync(ThroughputProperties.CreateAutoscaleThroughput(rus));