Exemplo n.º 1
0
 public CachingSiteResolver(
     IMemoryCache cache,
     ILoggerFactory loggerFactory,
     ISiteQueries siteRepository,
     SiteDataProtector dataProtector,
     IOptions <MultiTenantOptions> multiTenantOptions,
     IOptions <CachingSiteResolverOptions> cachingOptionsAccessor
     )
     : base(cache, loggerFactory)
 {
     siteRepo = siteRepository;
     this.multiTenantOptions = multiTenantOptions.Value;
     this.dataProtector      = dataProtector;
     cachingOptions          = cachingOptionsAccessor.Value;
 }
Exemplo n.º 2
0
 public SiteManager(
     SiteContext currentSite,
     ISiteCommands siteCommands,
     ISiteQueries siteQueries,
     SiteDataProtector dataProtector,
     IHttpContextAccessor contextAccessor,
     ILogger <SiteManager> logger,
     IOptions <MultiTenantOptions> multiTenantOptionsAccessor,
     IOptions <SiteConfigOptions> setupOptionsAccessor,
     CacheHelper cacheHelper
     )
 {
     commands           = siteCommands;
     queries            = siteQueries;
     multiTenantOptions = multiTenantOptionsAccessor.Value;
     setupOptions       = setupOptionsAccessor.Value;
     _context           = contextAccessor?.HttpContext;
     this.dataProtector = dataProtector;
     this.cacheHelper   = cacheHelper;
     log          = logger;
     siteSettings = currentSite;
 }