C# Class MongoDB.Driver.PairedConnection

Connection object that connects to a replica pair.
Inheritance: Connection
Mostrar archivo Open project: sdether/mongodb-csharp Class Usage Examples

Public Methods

Method Description
Open ( ) : void
PairedConnection ( String leftHost, String rightHost ) : System
PairedConnection ( String leftHost, int leftPort, String rightHost, int rightPort ) : System
PairedConnection ( String leftHost, int leftPort, String rightHost, int rightPort, bool slaveOk ) : System
QueryMaster ( ) : Document

Private Methods

Method Description
SwapHosts ( ) : void
TryOpen ( ) : void

Method Details

Open() public method

public Open ( ) : void
return void

PairedConnection() public method

public PairedConnection ( String leftHost, String rightHost ) : System
leftHost String
rightHost String
return System

PairedConnection() public method

public PairedConnection ( String leftHost, int leftPort, String rightHost, int rightPort ) : System
leftHost String
leftPort int
rightHost String
rightPort int
return System

PairedConnection() public method

public PairedConnection ( String leftHost, int leftPort, String rightHost, int rightPort, bool slaveOk ) : System
leftHost String
leftPort int
rightHost String
rightPort int
slaveOk bool
return System

QueryMaster() public method

public QueryMaster ( ) : Document
return Document