示例#1
0
 public MongoContentCollectionPublished(IMongoDatabase database, IAppProvider appProvider, ITextIndex indexer, DataConverter converter)
     : base(database)
 {
     queryContentAsync    = new QueryContent(converter);
     queryContentsById    = new QueryContentsByIds(converter, appProvider);
     queryContentsByQuery = new QueryContentsByQuery(converter, indexer);
     queryIdsAsync        = new QueryIdsAsync(appProvider);
 }
示例#2
0
 public MongoContentCollectionPublished(IMongoDatabase database, IAppProvider appProvider, ITextIndex indexer, IJsonSerializer serializer)
     : base(database)
 {
     queryContentAsync    = new QueryContent(serializer);
     queryContentsById    = new QueryContentsByIds(serializer, appProvider);
     queryContentsByQuery = new QueryContentsByQuery(serializer, indexer);
     queryIdsAsync        = new QueryIdsAsync(appProvider);
 }
 public MongoContentCollectionAll(IMongoDatabase database, IAppProvider appProvider, IContentTextIndex indexer, IJsonSerializer serializer)
     : base(database)
 {
     queryContentAsync    = new QueryContent(serializer);
     queryContentsById    = new QueryContentsByIds(serializer, appProvider);
     queryContentsByQuery = new QueryContentsByQuery(serializer, indexer);
     queryIdsAsync        = new QueryIdsAsync(appProvider);
     queryScheduledItems  = new QueryScheduledContents();
 }
 public MongoContentCollectionAll(IMongoDatabase database, IAppProvider appProvider, ITextIndex indexer, DataConverter converter)
     : base(database)
 {
     queryContentAsync    = new QueryContent(converter);
     queryContentsById    = new QueryContentsByIds(converter, appProvider);
     queryContentsByQuery = new QueryContentsByQuery(converter, indexer, appProvider);
     queryIdsAsync        = new QueryIdsAsync(appProvider);
     queryReferrersAsync  = new QueryReferrersAsync();
     queryScheduledItems  = new QueryScheduledContents();
 }
        public MongoContentRepository(IMongoDatabase database, IAppProvider appProvider, ITextIndexer indexer, IJsonSerializer serializer)
            : base(database)
        {
            Guard.NotNull(appProvider);
            Guard.NotNull(serializer);

            this.appProvider = appProvider;

            this.serializer = serializer;

            queryContentAsync    = new QueryContent(serializer);
            queryContentsById    = new QueryContentsByIds(serializer, appProvider);
            queryContentsByQuery = new QueryContentsByQuery(serializer, indexer);
            queryIdsAsync        = new QueryIdsAsync(appProvider);
            queryScheduledItems  = new QueryScheduledContents();
        }