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

Provides a mutex-like lock on a socket.
Inheritance: ILock
Afficher le fichier Open project: epall/selenium Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
IsLockFree ( IPEndPoint address ) : bool
PreventSocketInheritance ( ) : void

Method Details

Dispose() public méthode

Releases all resources associated with this SocketLock
public Dispose ( ) : void
Résultat void

LockObject() public méthode

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.
Résultat void

SocketLock() public méthode

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.
Résultat System

UnlockObject() public méthode

Unlocks the mutex port.
public UnlockObject ( ) : void
Résultat void