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

Maintains a sorted list of connected instances by ping time.
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void

Clears all the instances.

ConnectedInstanceCollection ( ) : System

Initializes a new instance of the ConnectedInstanceCollection class.

EnsureContains ( MongoServerInstance instance ) : void

Ensures that the instance is in the collection.

GetAllInstances ( ) : List

Gets a list of all instances.

GetPrimary ( ) : MongoServerInstance

Gets the primary instance.

GetPrimaryAndSecondaries ( ) : List

Gets a list of primary and secondary instances.

GetSecondaries ( ) : List

Gets a list of secondaries.

Remove ( MongoServerInstance instance ) : void

Removes the specified instance.

비공개 메소드들

메소드 설명
InstanceAveragePingTimeChanged ( object sender, EventArgs e ) : void

메소드 상세

Clear() 공개 메소드

Clears all the instances.
public Clear ( ) : void
리턴 void

ConnectedInstanceCollection() 공개 메소드

Initializes a new instance of the ConnectedInstanceCollection class.
public ConnectedInstanceCollection ( ) : System
리턴 System

EnsureContains() 공개 메소드

Ensures that the instance is in the collection.
public EnsureContains ( MongoServerInstance instance ) : void
instance MongoServerInstance The instance.
리턴 void

GetAllInstances() 공개 메소드

Gets a list of all instances.
public GetAllInstances ( ) : List
리턴 List

GetPrimary() 공개 메소드

Gets the primary instance.
public GetPrimary ( ) : MongoServerInstance
리턴 MongoServerInstance

GetPrimaryAndSecondaries() 공개 메소드

Gets a list of primary and secondary instances.
public GetPrimaryAndSecondaries ( ) : List
리턴 List

GetSecondaries() 공개 메소드

Gets a list of secondaries.
public GetSecondaries ( ) : List
리턴 List

Remove() 공개 메소드

Removes the specified instance.
public Remove ( MongoServerInstance instance ) : void
instance MongoServerInstance The instance.
리턴 void