Esempio n. 1
0
        public MongoContentRepository(IMongoDatabase database, IAppProvider appProvider)
        {
            Guard.NotNull(appProvider, nameof(appProvider));

            this.appProvider = appProvider;

            contentsDraft     = new MongoContentDraftCollection(database);
            contentsPublished = new MongoContentPublishedCollection(database);

            this.database = database;
        }