Skip to content

Commit eaa677a

Browse files
authored
Fix comma in code sample
1 parent 5a3bbdd commit eaa677a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ the recommended usage of Transaction Scope by calling `.AcquireAppLockAsync(...)
101101
// attempt to acquire a distributed mutex/lock, and will wait up to 5 seconds before timing out.
102102
//Note: Default behavior is to throw and exception but this is controlled via throwsException param
103103
// and can then be managed via the returned the SqlServerAppLock result.
104-
await using var appLock = await sqlTrans.AcquireAppLockAsync(
105-
"MyAppBulkLoadingDistributedLock", 5, throwsException: false);
104+
await using var appLock = await sqlTrans.AcquireAppLockAsync("MyAppBulkLoadingDistributedLock", 5, false);
106105

107106
if(appLock.IsAcquired)
108107
{
@@ -121,8 +120,7 @@ _*NOTE: *Application Lock should ALWAYS be explicity Disposed of to ensure Lock
121120
//Note: Default behavior is to throw and exception but this is controlled via throwsException param
122121
// and can then be managed via the returned the SqlServerAppLock result.
123122
//Note: The IDisposable/IAsyncDisposable implementation ensures that the Lock is released!
124-
await using var appLock = await sqlConn.AcquireAppLockAsync(
125-
"MyAppBulkLoadingDistributedLock", 5throwsException: false);
123+
await using var appLock = await sqlConn.AcquireAppLockAsync("MyAppBulkLoadingDistributedLock", 5, false);
126124

127125
if(appLock.IsAcquired)
128126
{

0 commit comments

Comments
 (0)