Esempio n. 1
0
 public AsyncLock()
 {
     this.semaphore = new AsyncSemaphore(1);
     this.releaser  = Task.FromResult(new Releaser(this));
 }
Esempio n. 2
0
 public AsyncLock()
 {
     this.semaphore = new AsyncSemaphore(1);
     this.releaser = Task.FromResult(new Releaser(this)); 
 }