C# Класс OpenQA.Selenium.Firefox.Internal.SocketLock

Provides a mutex-like lock on a socket.
Наследование: ILock
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
IsLockFree ( IPEndPoint address ) : bool
PreventSocketInheritance ( ) : void

Описание методов

Dispose() публичный Метод

Releases all resources associated with this SocketLock
public Dispose ( ) : void
Результат void

LockObject() публичный Метод

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.
Результат void

SocketLock() публичный Метод

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.
Результат System

UnlockObject() публичный Метод

Unlocks the mutex port.
public UnlockObject ( ) : void
Результат void