File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/service-connector/includes Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ using Azure.Core;
62
62
var sqlServerTokenProvider = new DefaultAzureCredential(
63
63
new DefaultAzureCredentialOptions
64
64
{
65
- ManagedIdentityClientId = " userAssignedClientId"
65
+ ManagedIdentityClientId = userAssignedClientId
66
66
});
67
67
68
68
// system-assigned managed identity
@@ -84,7 +84,7 @@ using (var connection = new NpgsqlConnection(connectionString))
84
84
Console.WriteLine("Opening connection using access token...");
85
85
connection.Open();
86
86
using var command = new NpgsqlCommand("SELECT version()", connection);
87
- NpgsqlDataReader reader = command.ExecuteReader ();
87
+ using NpgsqlDataReader reader = await command.ExecuteReaderAsync ();
88
88
89
89
while (reader.Read())
90
90
{
You can’t perform that action at this time.
0 commit comments