protected BsonDocument GetTabSvcYml() { IMongoCollection <BsonDocument> configCollection = mongoDatabase.GetCollection <BsonDocument>(ParserConstants.ConfigCollectionName); var query = MongoQueryHelper.GetTabSvcYml(configCollection); BsonDocument tabSvcDocument = configCollection.Find(query).FirstOrDefault(); return(tabSvcDocument["contents"].AsBsonDocument); }
protected BsonDocument LoadConfigDocument() { IMongoCollection <BsonDocument> configCollection = mongoDatabase.GetCollection <BsonDocument>(ParserConstants.ConfigCollectionName); // Get a handle on the config. var query = MongoQueryHelper.GetConfig(configCollection); return(configCollection.Find(query).FirstOrDefault()); }