C# Класс MongoDB.Azure.MongoHelper

Показать файл Открыть проект

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

Метод Описание
GetMongoEndPoint ( ) : IPEndPoint

Get the end point associated with the mongod instance. If running with a warm standby instance it returns the endpoint on which mongod is actually listening.

GetMongoServer ( ) : MongoServer

Get an instance of MongoServer and connect to it. Uses default connection string of the form mongod://host:port. For other connection forms or options use GetMongoEndPoint and create your own connection

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

Метод Описание
CheckEndpoint ( IPEndPoint mongodEndpoint ) : bool

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

GetMongoEndPoint() публичный статический Метод

Get the end point associated with the mongod instance. If running with a warm standby instance it returns the endpoint on which mongod is actually listening.
public static GetMongoEndPoint ( ) : IPEndPoint
Результат System.Net.IPEndPoint

GetMongoServer() публичный статический Метод

Get an instance of MongoServer and connect to it. Uses default connection string of the form mongod://host:port. For other connection forms or options use GetMongoEndPoint and create your own connection
public static GetMongoServer ( ) : MongoServer
Результат MongoServer