コード例 #1
0
        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);
        }
コード例 #2
0
        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());
        }