Skip to content

Commit 8fb3507

Browse files
xfz11scottaddie
andauthored
Apply suggestions from code review
Co-authored-by: Scott Addie <[email protected]>
1 parent 930f0a0 commit 8fb3507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/service-connector/includes/code_postgres_aad.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ using Azure.Core;
6262
var sqlServerTokenProvider = new DefaultAzureCredential(
6363
new DefaultAzureCredentialOptions
6464
{
65-
ManagedIdentityClientId = "userAssignedClientId"
65+
ManagedIdentityClientId = userAssignedClientId
6666
});
6767

6868
// system-assigned managed identity
@@ -84,7 +84,7 @@ using (var connection = new NpgsqlConnection(connectionString))
8484
Console.WriteLine("Opening connection using access token...");
8585
connection.Open();
8686
using var command = new NpgsqlCommand("SELECT version()", connection);
87-
NpgsqlDataReader reader = command.ExecuteReader();
87+
using NpgsqlDataReader reader = await command.ExecuteReaderAsync();
8888

8989
while (reader.Read())
9090
{

0 commit comments

Comments
 (0)