Exemple #1
0
 public ContentFacade(ICollectionFacade collections, IFilterFacade filters, IContentLoader loader, IContentRepository repository, IContentRouteHelperContext routing, ISiteDefinitionResolver siteDefinitionResolver, IUrlResolver urlResolver, IWebFacade web)
 {
     this.Collections            = collections ?? throw new ArgumentNullException(nameof(collections));
     this.Filters                = filters ?? throw new ArgumentNullException(nameof(filters));
     this.Loader                 = loader ?? throw new ArgumentNullException(nameof(loader));
     this.Repository             = repository ?? throw new ArgumentNullException(nameof(repository));
     this.Routing                = routing ?? throw new ArgumentNullException(nameof(routing));
     this.SiteDefinitionResolver = siteDefinitionResolver ?? throw new ArgumentNullException(nameof(siteDefinitionResolver));
     this.UrlResolver            = urlResolver ?? throw new ArgumentNullException(nameof(urlResolver));
     this.Web = web ?? throw new ArgumentNullException(nameof(web));
 }
Exemple #2
0
 public CollectionPlan(
     LogCollectionBackupController logController,
     ICollectionFacade collection,
     Func <IndexCollectionController> indexControllerFactory,
     BackupPlan plan)
 {
     LogController          = logController;
     Collection             = collection;
     IndexControllerFactory = indexControllerFactory;
     Plan = plan;
 }
Exemple #3
0
 public RestoreController(
     string sourceAccount,
     string sourceDb,
     string sourceCollection,
     IStorageFacade storageFacade,
     ICollectionFacade collectionFacade,
     ILogger logger)
 {
     _storageFacade    = storageFacade;
     _collectionFacade = collectionFacade;
     _logger           = logger;
     _indexFile        = new ReadonlyIndexFile(
         storageFacade,
         sourceAccount,
         sourceDb,
         sourceCollection,
         logger);
 }
 public LogCollectionBackupController(
     ICollectionFacade collectionFacade,
     IStorageFacade storageFacade,
     TimeSpan rpo,
     BackupOptions included,
     LogConstants logConstants,
     ILogger logger)
 {
     _collection = collectionFacade;
     _logFile    = new LogFile(
         storageFacade,
         collectionFacade.Parent.Parent.AccountName,
         collectionFacade.Parent.DatabaseName,
         collectionFacade.CollectionName,
         logger);
     _rpo          = rpo;
     _included     = included;
     _logConstants = logConstants;
     _logger       = logger;
 }