C# 클래스 OpenQA.Selenium.Firefox.Internal.SocketLock

Provides a mutex-like lock on a socket.
상속: ILock
파일 보기 프로젝트 열기: epall/selenium 1 사용 예제들

공개 메소드들

메소드 설명
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