Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit ade40d2

Browse files
Merge pull request #481 from thefringeninja/fix-the-build
fix compiler errors
2 parents cb557ca + d1486cc commit ade40d2

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/SqlStreamStore.MsSql/MsSqlStreamStoreV3.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public async Task GrantRead (string to, CancellationToken cancellationToken = de
415415
GuardAgainstDisposed();
416416
using (var connection = _createConnection())
417417
{
418-
await connection.OpenAsync(cancellationToken).NotOnCapturedContext();
418+
await connection.OpenAsync(cancellationToken).ConfigureAwait(false);
419419
await GrantReadInternal(to, connection, cancellationToken);
420420
}
421421
}
@@ -425,7 +425,7 @@ public async Task GrantAppend(string to, CancellationToken cancellationToken = d
425425
GuardAgainstDisposed();
426426
using (var connection = _createConnection())
427427
{
428-
await connection.OpenAsync(cancellationToken).NotOnCapturedContext();
428+
await connection.OpenAsync(cancellationToken).ConfigureAwait(false);
429429
await GrantAppendInternal(to, connection, cancellationToken);
430430
await GrantReadInternal(to, connection, cancellationToken);
431431
}
@@ -441,7 +441,7 @@ private async Task GrantReadInternal(string to, SqlConnection connection, Cancel
441441
command.Parameters.Add(new SqlParameter("@membername", to));
442442
await command
443443
.ExecuteNonQueryAsync(cancellationToken)
444-
.NotOnCapturedContext();
444+
.ConfigureAwait(false);
445445
}
446446
}
447447
private async Task GrantAppendInternal(string to, SqlConnection connection, CancellationToken cancellationToken)
@@ -452,7 +452,7 @@ private async Task GrantAppendInternal(string to, SqlConnection connection, Canc
452452
command.CommandTimeout = _commandTimeout;
453453
await command
454454
.ExecuteNonQueryAsync(cancellationToken)
455-
.NotOnCapturedContext();
455+
.ConfigureAwait(false);
456456
}
457457
using (var command = new SqlCommand("sp_addrolemember", connection))
458458
{
@@ -462,7 +462,7 @@ await command
462462
command.Parameters.Add(new SqlParameter("@membername", to));
463463
await command
464464
.ExecuteNonQueryAsync(cancellationToken)
465-
.NotOnCapturedContext();
465+
.ConfigureAwait(false);
466466
}
467467
}
468468
}

tests/SqlStreamStore.MsSql.V3.Tests/MsSqlStreamStoreV3Fixture.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public async Task CreateUser(string user, CancellationToken cancellationToken =
7272
{
7373
await connection
7474
.OpenAsync(cancellationToken)
75-
.NotOnCapturedContext();
75+
.ConfigureAwait(false);
7676
await command
7777
.ExecuteScalarAsync(cancellationToken)
78-
.NotOnCapturedContext();
78+
.ConfigureAwait(false);
7979
}
8080
}
8181
}
@@ -107,4 +107,4 @@ public async Task Prepare()
107107
await MsSqlStreamStoreV3.CreateSchemaIfNotExists();
108108
}
109109
}
110-
}
110+
}

0 commit comments

Comments
 (0)