Skip to content

ReleaseDatabaseLockAsync Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Task<bool> ReleaseDatabaseLockAsync(string resource, DatabaseLockMode mode, DatabaseLockOwner owner, CancellationToken cancellationToken = null) ​

csharp
Task<bool> ReleaseDatabaseLockAsync(string resource, DatabaseLockMode mode, DatabaseLockOwner owner, CancellationToken cancellationToken = null)

Releases one acquisition of a database-backed application lock.

Returns ​

when a held lock was released; otherwise .

Remarks ​

PostgreSQL transaction-owned locks cannot be explicitly released and end with the transaction.