C# 클래스 MongoDB.Driver.Internal.DirectMongoServerProxy

Connects directly to a specified instance, failing over to other addresses as necessary.
상속: IMongoServerProxy
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver

공개 메소드들

메소드 설명
ChooseServerInstance ( ReadPreference readPreference ) : MongoServerInstance

Chooses the server instance.

Connect ( System.TimeSpan timeout, ReadPreference readPreference ) : void

Connects to the server respecting the timeout and readPreference.

DirectMongoServerProxy ( MongoServerSettings settings ) : System

Initializes a new instance of the DirectMongoServerProxy class.

DirectMongoServerProxy ( MongoServerSettings serverSettings, MongoServerInstance instance, int connectionAttempt ) : System

Initializes a new instance of the DirectMongoServerProxy class.

Disconnect ( ) : void

Disconnects from the server.

Ping ( ) : void

Pings the server.

VerifyState ( ) : void

Verifies the state of the server.

메소드 상세

ChooseServerInstance() 공개 메소드

Chooses the server instance.
public ChooseServerInstance ( ReadPreference readPreference ) : MongoServerInstance
readPreference ReadPreference The read preference.
리턴 MongoServerInstance

Connect() 공개 메소드

Connects to the server respecting the timeout and readPreference.
public Connect ( System.TimeSpan timeout, ReadPreference readPreference ) : void
timeout System.TimeSpan The timeout.
readPreference ReadPreference The read preference.
리턴 void

DirectMongoServerProxy() 공개 메소드

Initializes a new instance of the DirectMongoServerProxy class.
public DirectMongoServerProxy ( MongoServerSettings settings ) : System
settings MongoServerSettings The settings.
리턴 System

DirectMongoServerProxy() 공개 메소드

Initializes a new instance of the DirectMongoServerProxy class.
public DirectMongoServerProxy ( MongoServerSettings serverSettings, MongoServerInstance instance, int connectionAttempt ) : System
serverSettings MongoServerSettings The server settings.
instance MongoServerInstance The instance.
connectionAttempt int The connection attempt.
리턴 System

Disconnect() 공개 메소드

Disconnects from the server.
public Disconnect ( ) : void
리턴 void

Ping() 공개 메소드

Pings the server.
public Ping ( ) : void
리턴 void

VerifyState() 공개 메소드

Verifies the state of the server.
public VerifyState ( ) : void
리턴 void