Method ReadLock
ReadLock<T>(Func<ILockContext, Task<T>>, DBLockOptions?)
Executes a read lock with the given function.
Task<T> ReadLock<T>(Func<ILockContext, Task<T>> fn, DBLockOptions? options = null)
Parameters
fnFunc<ILockContext, Task<T>>optionsDBLockOptions
Returns
- Task<T>
Type Parameters
T