internal Cursor(ChannelsPool channelPool, BsonDocument filter, CollectionNamespace collectionNamespace, Guid sessionId) { _channelPool = channelPool; _filter = filter; _collectionNamespace = collectionNamespace; _sessionId = new BsonDocument("id", BsonBinaryData.Create(sessionId)); }
internal MongoCollection(MongoDatabase database, string name, ChannelsPool channelsPool) { _channelsPool = channelsPool; Database = database; Namespace = new CollectionNamespace(database.Name, name); }
public MongoClient(EndPoint endPoint, ILoggerFactory loggerFactory) { EndPoint = endPoint; _channelsPool = new ChannelsPool(endPoint, loggerFactory); }
internal Cursor(ChannelsPool channelPool, BsonDocument filter, CollectionNamespace collectionNamespace) : this(channelPool, filter, collectionNamespace, Guid.NewGuid()) { }