ISemaphoreAcquire Method Hazelcast .Net Client Class Library
Acquires a permit, if one is available and returns immediately, reducing the number of available permits by one.

Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.6.3.0
Syntax

void Acquire()
Exceptions

ExceptionCondition
InvalidOperationExceptionif hazelcast instance is shutdown while waiting
Remarks

Acquires a permit, if one is available and returns immediately, reducing the number of available permits by one.

If no permit is available then the current thread becomes disabled for thread scheduling purposes and lies dormant until one of two things happens:

  • Some other thread invokes one of the Release() methods for this semaphore and the current thread is next to be assigned a permit;
  • This ISemaphore instance is destroyed; or
See Also

Reference