C# Class OpenQA.Selenium.Firefox.Internal.SocketLock

Provides a mutex-like lock on a socket.
Inheritance: ILock
ファイルを表示 Open project: epall/selenium Class Usage Examples

Public Methods

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.

Private Methods

Method Description
IsLockFree ( IPEndPoint address ) : bool
PreventSocketInheritance ( ) : void

Method Details

Dispose() public method

Releases all resources associated with this SocketLock
public Dispose ( ) : void
return void

LockObject() public method

Locks the mutex port.
public LockObject ( long timeoutInMilliseconds ) : void
timeoutInMilliseconds long The amount of time (in milliseconds) to wait for /// the mutex port to become available.
return void

SocketLock() public method

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.
public SocketLock ( int lockPort ) : System
lockPort int Port to use to acquire the lock.
return System

UnlockObject() public method

Unlocks the mutex port.
public UnlockObject ( ) : void
return void