private static void ReadSettings() { CachingSettings cachingSettings = GlobalSettingsFacade.GetNamedCaching(CacheName); _isEnabled = cachingSettings.Enabled; _maximumSize = cachingSettings.Size; }
public PageHeadBuilder(CachingSettings cachingSettings, CommonSettings commonSettings, IActionContextAccessor actionContextAccessor, ICacheKeyService cacheKeyService, IWebHostEnvironment webHostEnvironment, INopFileProvider fileProvider, IStaticCacheManager staticCacheManager, IUrlHelperFactory urlHelperFactory, IUrlRecordService urlRecordService, SeoSettings seoSettings ) { _processor = new BundleFileProcessor(); _cachingSettings = cachingSettings; _commonSettings = commonSettings; _actionContextAccessor = actionContextAccessor; _cacheKeyService = cacheKeyService; _webHostEnvironment = webHostEnvironment; _fileProvider = fileProvider; _staticCacheManager = staticCacheManager; _urlHelperFactory = urlHelperFactory; _urlRecordService = urlRecordService; _seoSettings = seoSettings; _titleParts = new List <string>(); _metaDescriptionParts = new List <string>(); _metaKeywordParts = new List <string>(); _scriptParts = new Dictionary <ResourceLocation, List <ScriptReferenceMeta> >(); _inlineScriptParts = new Dictionary <ResourceLocation, List <string> >(); _cssParts = new Dictionary <ResourceLocation, List <CssReferenceMeta> >(); _canonicalUrlParts = new List <string>(); _headCustomParts = new List <string>(); _pageCssClassParts = new List <string>(); }
public FakeCustomerService(CachingSettings cachingSettings = null, CustomerSettings customerSettings = null, ICacheKeyService cacheKeyService = null, IEventPublisher eventPublisher = null, IGenericAttributeService genericAttributeService = null, IRepository <Address> customerAddressRepository = null, IRepository <Customer> customerRepository = null, IRepository <CustomerAddressMapping> customerAddressMappingRepository = null, IRepository <CustomerCustomerRoleMapping> customerCustomerRoleMappingRepository = null, IRepository <CustomerPassword> customerPasswordRepository = null, IRepository <CustomerRole> customerRoleRepository = null, IRepository <GenericAttribute> gaRepository = null, IRepository <ShoppingCartItem> shoppingCartRepository = null, IStoreContext storeContext = null, ShoppingCartSettings shoppingCartSettings = null) : base( cachingSettings ?? new CachingSettings(), customerSettings ?? new CustomerSettings(), cacheKeyService ?? new FakeCacheKeyService(), eventPublisher ?? new Mock <IEventPublisher>().Object, genericAttributeService ?? new Mock <IGenericAttributeService>().Object, customerAddressRepository.FakeRepoNullPropagation(), customerRepository.FakeRepoNullPropagation(), customerAddressMappingRepository.FakeRepoNullPropagation(), customerCustomerRoleMappingRepository.FakeRepoNullPropagation(), customerPasswordRepository.FakeRepoNullPropagation(), customerRoleRepository.FakeRepoNullPropagation(), gaRepository.FakeRepoNullPropagation(), shoppingCartRepository.FakeRepoNullPropagation(), new TestCacheManager(), storeContext ?? new Mock <IStoreContext>().Object, shoppingCartSettings ?? new ShoppingCartSettings()) { }
public OrderService(CachingSettings cachingSettings, IEventPublisher eventPublisher, IProductService productService, IRepository <Address> addressRepository, IRepository <Customer> customerRepository, IRepository <Order> orderRepository, IRepository <OrderItem> orderItemRepository, IRepository <OrderNote> orderNoteRepository, IRepository <Product> productRepository, IRepository <ProductWarehouseInventory> productWarehouseInventoryRepository, IRepository <RecurringPayment> recurringPaymentRepository, IRepository <RecurringPaymentHistory> recurringPaymentHistoryRepository, IShipmentService shipmentService) { _cachingSettings = cachingSettings; _eventPublisher = eventPublisher; _productService = productService; _addressRepository = addressRepository; _customerRepository = customerRepository; _orderRepository = orderRepository; _orderItemRepository = orderItemRepository; _orderNoteRepository = orderNoteRepository; _productRepository = productRepository; _productWarehouseInventoryRepository = productWarehouseInventoryRepository; _recurringPaymentRepository = recurringPaymentRepository; _recurringPaymentHistoryRepository = recurringPaymentHistoryRepository; _shipmentService = shipmentService; }
public ContainerOptions() { Database = new DatabaseSettings(); Token = new TokenSettings(); Caching = new CachingSettings(); CORS = new CorsSettings(); }
public UserService(CachingSettings cachingSettings, UserSettings userSettings, ICacheKeyService cacheKeyService, IRepository <Auth_Roles> rolesRepository, IRepository <Auth_Assign> permissionAssign, IEventPublisher eventPublisher, IRolesUserServices rolesServices, IRepository <Auth_User> userRepository, IRepository <Auth_UserRoles> userRolesMappingRepository, IStaticCacheManager staticCacheManager, ILogger logger, IMotelDataProvider dataProvider) { _rolesRepository = rolesRepository; _cachingSettings = cachingSettings; _userSettings = userSettings; _cacheKeyService = cacheKeyService; _eventPublisher = eventPublisher; _userRolesMappingRepository = userRolesMappingRepository; _userRepository = userRepository; _staticCacheManager = staticCacheManager; _logger = logger; _permissionAssign = permissionAssign; _dataProvider = dataProvider; _rolesServices = rolesServices; }
public JenkinsJUnitStatsController( IOptions <CachingSettings> settings, ILogger <JenkinsJUnitStatsController> logger, JenkinsApiClient apiClient, HttpClient httpClient) { this.settings = settings.Value; this.logger = logger; this.apiClient = apiClient; this.httpClient = httpClient; }
public FeedProcessingCachingStrategy(ILockServer lockServer, CachingHelper cachingHelper, CachingSettings cachingSettings, IVkGroupRepository groupRepository, IConfigurationProvider configurationProvider, IDateTimeHelper dateTimeHelper, ICacheStorage cacheStorage) { this.cachingHelper = cachingHelper; this.cachingSettings = cachingSettings; this.groupRepository = groupRepository; this.configurationProvider = configurationProvider; this.dateTimeHelper = dateTimeHelper; this.cacheStorage = cacheStorage; this.lockServer = lockServer; this.log = LogManager.GetLogger(); }
static EntityTokenCacheFacade() { CachingSettings cachingSettings = GlobalSettingsFacade.GetNamedCaching("Entity token parents"); Enabled = cachingSettings.Enabled; MaxSize = cachingSettings.GetSize(DefaultSize); #if DISABLE_ENTITYTOKEN_CACHE Enabled = false; #endif }
public LesterServices( ILogger logger, CachingSettings cachingSettings, LesterSettings customerSettings, IRepository <Lesters> lestersRepository, IRepository <RentalPost> rentalPostRepository) { _logger = logger; _cachingSettings = cachingSettings; _customerSettings = customerSettings; _lestersRepository = lestersRepository; _rentalPostRepository = rentalPostRepository; }
public AddressService(AddressSettings addressSettings, CachingSettings cachingSettings, IAddressAttributeParser addressAttributeParser, IAddressAttributeService addressAttributeService, ICountryService countryService, IEventPublisher eventPublisher, IRepository <Address> addressRepository, IStateProvinceService stateProvinceService) { _addressSettings = addressSettings; _cachingSettings = cachingSettings; _addressAttributeParser = addressAttributeParser; _addressAttributeService = addressAttributeService; _countryService = countryService; _eventPublisher = eventPublisher; _addressRepository = addressRepository; _stateProvinceService = stateProvinceService; }
public SVGContentService(CachingSettings cachingSettings, IRepository <SVGContent> SVGContentRepository) { _cachingSettings = cachingSettings; _SVGContentRepository = SVGContentRepository; }
public CacheKeyService(CachingSettings cachingSettings) { _cachingSettings = cachingSettings; }