Méthode | Description | |
---|---|---|
InitializeAsyncLocks ( ) : void | ||
Lock ( string operationName ) : bool | ||
LockAsync ( string operationName ) : System.Threading.Tasks.Task |
Returns a lock right away or waits asynchronously until a lock is available.
|
|
LockFile ( string path ) : System | ||
LockFile ( string path, ITraceFactory traceFactory ) : System | ||
Release ( ) : void | ||
TerminateAsyncLocks ( ) : void |
Because of a bug in Ninject in how it disposes objects in the global scope for each request we can't use Dispose to shut down the file system watcher. Otherwise this would get disposed on every request.
|
Méthode | Description | |
---|---|---|
OnLockAcquired ( ) : void | ||
OnLockRelease ( ) : void |
Méthode | Description | |
---|---|---|
DeleteFileSafe ( ) : void | ||
OnLockReleasedInternal ( object sender, |
When a lock file change has been detected we check whether there are queued up lock requests. If so then we attempt to get the lock and dequeue the next request.
|
|
ReadLockInfo ( ) : |
||
TraceIfUnknown ( |
||
WriteLockInfo ( string operationName, Stream lockStream ) : void |
public Lock ( string operationName ) : bool | ||
operationName | string | |
Résultat | bool |
public LockAsync ( string operationName ) : System.Threading.Tasks.Task | ||
operationName | string | |
Résultat | System.Threading.Tasks.Task |
public LockFile ( string path, ITraceFactory traceFactory ) : System | ||
path | string | |
traceFactory | ITraceFactory | |
Résultat | System |