C# Класс MongoDB.Driver.Connection

Description of Connection.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Authenticate ( string username, string password, string dbname ) : bool
Call ( Action msgWriter ) : ReplyMessage

Send a message to the server and receive a response

Close ( ) : void
Dispose ( ) : void
Say ( Action msgWriter, bool safe = false ) : void

Send a message to the server without receiving a response

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

Метод Описание
AddHost ( string name, int port ) : void
CheckIn ( System.Net.Sockets.Port port ) : void
CheckOut ( System.TimeSpan timeout ) : System.Net.Sockets.Port
Connection ( string host, int port, int min = 1, int max = 10 ) : System
Dispose ( bool disposing ) : void
Hash ( string username, string password ) : string
Open ( ) : void
WithPort ( Action action ) : void

Do something with a port, then return it to the queue

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

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

public Authenticate ( string username, string password, string dbname ) : bool
username string
password string
dbname string
Результат bool

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

Send a message to the server and receive a response
public Call ( Action msgWriter ) : ReplyMessage
msgWriter Action
Результат MongoDB.Driver.IO.ReplyMessage

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

public Close ( ) : void
Результат void

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

public Dispose ( ) : void
Результат void

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

Send a message to the server without receiving a response
public Say ( Action msgWriter, bool safe = false ) : void
msgWriter Action
safe bool if true, ensures the message executed without error on the server
Результат void