File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments