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; }
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; }