public PageByFieldTemplateCache(
            FieldTemplateService fieldTemplateService,
            DataService dataService,
            EventBroker eventBroker,
            MemoryCacheService memoryCacheService,
            AuthorizationService authorizationService,
            PageService pageService,
            IServiceProvider serviceProvider,
            RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor)
        {
            var fieldType = ActivatorUtilities.CreateInstance <T>(serviceProvider);

            _fieldTemplateService = fieldTemplateService;
            _dataService          = dataService;
            _memoryCacheService   = memoryCacheService;
            _authorizationService = authorizationService;
            _pageService          = pageService;
            _fieldTemplateName    = fieldType.Name;

            _cacheKey = GetType().FullName + ":" + _fieldTemplateName;

            eventBroker.Subscribe <FieldTemplateCreated>(_ => _memoryCacheService.Remove(_cacheKey));
            eventBroker.Subscribe <FieldTemplateDeleted>(_ => _memoryCacheService.Remove(_cacheKey));
            eventBroker.Subscribe <DraftPageCreated>(_ => _memoryCacheService.Remove(_cacheKey));
            eventBroker.Subscribe <PageCreated>(_ => _memoryCacheService.Remove(_cacheKey));
            eventBroker.Subscribe <PageDeleted>(_ => _memoryCacheService.Remove(_cacheKey));
            eventBroker.Subscribe <PageUpdated>(x =>
            {
                if (x.OriginalFieldTemplateSystemId != null)
                {
                    _memoryCacheService.Remove(_cacheKey);
                }
            });
            _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
        }
 public CheckoutViewModelBuilder(
     RequestModelAccessor requestModelAccessor,
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
     SecurityContextService securityContextService,
     DeliveryMethodViewModelBuilder deliveryMethodViewModelBuilder,
     PaymentMethodViewModelBuilder paymentMethodViewModelBuilder,
     SecurityToken securityToken,
     PersonService personService,
     ISignInUrlResolver signInUrlResolver,
     AddressTypeService addressTypeService,
     CountryService countryService,
     PersonStorage personStorage,
     CheckoutState checkoutState)
 {
     _requestModelAccessor           = requestModelAccessor;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _securityContextService         = securityContextService;
     _deliveryMethodViewModelBuilder = deliveryMethodViewModelBuilder;
     _paymentMethodViewModelBuilder  = paymentMethodViewModelBuilder;
     _securityToken      = securityToken;
     _personService      = personService;
     _addressTypeService = addressTypeService;
     _countryService     = countryService;
     _personStorage      = personStorage;
     _checkoutState      = checkoutState;
     _signInUrlResolver  = signInUrlResolver;
 }
Beispiel #3
0
 public CartController(CartViewModelBuilder miniCartViewModelBuilder, RequestModelAccessor requestModelAccessor, RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor, ModuleECommerce moduleECommerce)
 {
     _cartViewModelBuilder           = miniCartViewModelBuilder;
     _requestModelAccessor           = requestModelAccessor;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _moduleECommerce = moduleECommerce;
 }
Beispiel #4
0
 public RequestModelActionFilter(
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
     RequestModelAccessor requestModelAccessor,
     RouteRequestInfoAccessor routeRequestInfoAccessor,
     ISecureConnectionResolver secureConnectionResolver,
     ChannelService channelService,
     DomainNameService domainNameService,
     LanguageService languageService,
     PageService pageService,
     FieldTemplateService fieldTemplateService,
     UrlService urlService,
     CountryService countryService)
 {
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _requestModelAccessor           = requestModelAccessor;
     _routeRequestInfoAccessor       = routeRequestInfoAccessor;
     _secureConnectionResolver       = secureConnectionResolver;
     _channelService       = channelService;
     _domainNameService    = domainNameService;
     _languageService      = languageService;
     _pageService          = pageService;
     _fieldTemplateService = fieldTemplateService;
     _urlService           = urlService;
     _countryService       = countryService;
 }
Beispiel #5
0
 public RequestModelHandler(
     ISecureConnectionResolver secureConnectionResolver,
     ChannelService channelService,
     DomainNameService domainNameService,
     LanguageService languageService,
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
     RouteRequestInfoAccessor routeRequestInfoAccessor,
     CartAccessor cartAccessor,
     RequestModelAccessor requestModelAccessor,
     PageService pageService,
     FieldTemplateService fieldTemplateService,
     UrlService urlService)
 {
     _secureConnectionResolver       = secureConnectionResolver;
     _channelService                 = channelService;
     _domainNameService              = domainNameService;
     _languageService                = languageService;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _routeRequestInfoAccessor       = routeRequestInfoAccessor;
     _cartAccessor         = cartAccessor;
     _requestModelAccessor = requestModelAccessor;
     _pageService          = pageService;
     _fieldTemplateService = fieldTemplateService;
     _urlService           = urlService;
 }
 public CheckoutViewModelBuilder(
     RequestModelAccessor requestModelAccessor,
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
     SecurityContextService securityContextService,
     DeliveryMethodViewModelBuilder deliveryMethodViewModelBuilder,
     PaymentOptionViewModelBuilder paymentOptionViewModelBuilder,
     PersonService personService,
     ISignInUrlResolver signInUrlResolver,
     AddressTypeService addressTypeService,
     CountryService countryService,
     PersonStorage personStorage,
     PaymentService paymentService,
     CurrencyService currencyService,
     ShippingProviderService shippingProviderService)
 {
     _requestModelAccessor           = requestModelAccessor;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _securityContextService         = securityContextService;
     _deliveryMethodViewModelBuilder = deliveryMethodViewModelBuilder;
     _paymentOptionViewModelBuilder  = paymentOptionViewModelBuilder;
     _personService           = personService;
     _addressTypeService      = addressTypeService;
     _countryService          = countryService;
     _personStorage           = personStorage;
     _signInUrlResolver       = signInUrlResolver;
     _paymentService          = paymentService;
     _currencyService         = currencyService;
     _shippingProviderService = shippingProviderService;
 }
Beispiel #7
0
 public BannersResolver(FieldTemplateService fieldTemplateService,
                        RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
                        UrlService urlService)
 {
     _fieldTemplateService           = fieldTemplateService;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _urlService = urlService;
 }
Beispiel #8
0
 public AccessorCleanup(
     RequestModelAccessor requestModelAccessor,
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
     RouteRequestInfoAccessor routeRequestInfoAccessor)
 {
     _requestModelAccessor           = requestModelAccessor;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _routeRequestInfoAccessor       = routeRequestInfoAccessor;
 }
 public StockStatusMessageServiceImpl(
     IStringLocalizer <IStockStatusMessageService> stringLocalizer,
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
     WebsiteService websiteService)
 {
     _stringLocalizer = stringLocalizer;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _websiteService = websiteService;
 }
 public SearchQueryResolver(
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
     RouteRequestInfoAccessor routeRequestInfoAccessor,
     RequestModelAccessor requestModelAccessor)
 {
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _routeRequestInfoAccessor       = routeRequestInfoAccessor;
     _requestModelAccessor           = requestModelAccessor;
 }
 public ErrorPageResolverDecorator(
     IErrorPageResolver parentResolver,
     UrlService urlService,
     PageByFieldTemplateCache <ErrorPageByFieldTypeResolverType> pageByFieldType,
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor)
 {
     _parentResolver  = parentResolver;
     _urlService      = urlService;
     _pageByFieldType = pageByFieldType;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
 }
Beispiel #12
0
 public HeaderViewModelBuilder(
     UrlService urlService,
     RequestModelAccessor requestModelAccessor,
     PageByFieldTemplateCache <LoginPageByFieldTemplateCache> pageByFieldType,
     PageService pageService,
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor)
 {
     _urlService                     = urlService;
     _requestModelAccessor           = requestModelAccessor;
     _pageByFieldType                = pageByFieldType;
     _pageService                    = pageService;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
 }
Beispiel #13
0
 public RouteInfoService(RequestModelAccessor requestModelAccessor,
                         RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
                         IHttpContextAccessor httpContextAccessor, CountryService countryService,
                         ChannelService channelService, PageService pageService, PageModelBuilder pageModelBuilder)
 {
     _channelService                 = channelService;
     _requestModelAccessor           = requestModelAccessor;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _httpContextAccessor            = httpContextAccessor;
     _countryService                 = countryService;
     _pageService      = pageService;
     _pageModelBuilder = pageModelBuilder;
 }
 public KlarnaWidgetV2(
     IPaymentInfoCalculator paymentInfoCalculator,
     PaymentWidgetService paymentWidgetService,
     KlarnaPaymentConfigV2 paymentConfig,
     RequestModelAccessor requestModelAccessor,
     RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
     SecurityToken securityToken,
     UrlService urlService,
     PageService pageService,
     DistributedLockService distributedLockService)
 {
     _paymentInfoCalculator          = paymentInfoCalculator;
     _paymentConfig                  = paymentConfig;
     _paymentWidgetService           = paymentWidgetService;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _requestModelAccessor           = requestModelAccessor;
     _securityToken                  = securityToken;
     _urlService             = urlService;
     _pageService            = pageService;
     _distributedLockService = distributedLockService;
 }
Beispiel #15
0
 public ErrorController(ErrorViewModelBuilder errorViewModelBuilder, RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor)
 {
     _errorViewModelBuilder          = errorViewModelBuilder;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
 }
 public LinkUrlResolver(RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor,
                        UrlService urlService)
 {
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
     _urlService = urlService;
 }
Beispiel #17
0
 public SiteSettingViewModelBuilder(RequestModelAccessor requestModelAccessor, RouteRequestInfoAccessor routeRequestInfoAccessor, RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor)
 {
     _requestModelAccessor           = requestModelAccessor;
     _routeRequestInfoAccessor       = routeRequestInfoAccessor;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
 }
Beispiel #18
0
 public OpenGraphViewModelBuilder(MetaService metaService, UrlService urlService, RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor)
 {
     _metaService = metaService;
     _urlService  = urlService;
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
 }
 public HomeViewModelBuilder(RouteRequestLookupInfoAccessor routeRequestLookupInfoAccessor)
 {
     _routeRequestLookupInfoAccessor = routeRequestLookupInfoAccessor;
 }