Skip to content

Commit d102b43

Browse files
authored
Update Program.cs
1 parent 309e772 commit d102b43

File tree

1 file changed

+1
-1
lines changed
  • docs/azure/sdk/snippets/dependency-injection/WebApplicationBuilder

1 file changed

+1
-1
lines changed

docs/azure/sdk/snippets/dependency-injection/WebApplicationBuilder/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
// Set a credential for all clients to use by default
2121
DefaultAzureCredential credential = new();
22-
clientBuilder.UseCredential(new DefaultAzureCredential());
22+
clientBuilder.UseCredential(credential );
2323

2424
// Register a subclient for each Service Bus Queue
2525
foreach (string queue in queueNames)

0 commit comments

Comments
 (0)