Method | Description | |
---|---|---|
Dispose ( ) : void |
Releases all resources associated with this SocketLock
|
|
LockObject ( long timeoutInMilliseconds ) : void |
Locks the mutex port.
|
|
SocketLock ( int lockPort ) : System |
Initializes a new instance of the SocketLock class. The SocketLock class will attempt to acquire the specified port number, and wait for it to become free. |
|
UnlockObject ( ) : void |
Unlocks the mutex port.
|
Method | Description | |
---|---|---|
IsLockFree ( |
||
PreventSocketInheritance ( ) : void |
public LockObject ( long timeoutInMilliseconds ) : void | ||
timeoutInMilliseconds | long | The amount of time (in milliseconds) to wait for /// the mutex port to become available. |
return | void |
public SocketLock ( int lockPort ) : System | ||
lockPort | int | Port to use to acquire the lock. |
return | System |