/// <summary>
 /// Initializes a new instance of the <see cref="Releaser"/> struct.
 /// </summary>
 /// <param name="semaphore">The semaphore.</param>
 public Releaser(AsyncSemaphore semaphore)
 {
     _semaphore = semaphore;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AsyncLock" /> class.
 /// </summary>
 public AsyncLock()
 {
     _semaphore = new AsyncSemaphore();
 }