コード例 #1
0
ファイル: ForumService.cs プロジェクト: mandocaesar/Mesinku
        public ForumService(ICacheManager cacheManager,
            IRepository<ForumGroup> forumGroupRepository,
            IRepository<Forum> forumRepository,
            IRepository<ForumTopic> forumTopicRepository,
            IRepository<ForumPost> forumPostRepository,
            IRepository<PrivateMessage> forumPrivateMessageRepository,
            IRepository<ForumSubscription> forumSubscriptionRepository,
            ForumSettings forumSettings,
            IRepository<Customer> customerRepository,
            IGenericAttributeService genericAttributeService,
            ICustomerService customerService,
            IWorkflowMessageService workflowMessageService,
			IRepository<StoreMapping> storeMappingRepository,
			ICommonServices services)
        {
            _cacheManager = cacheManager;
            _forumGroupRepository = forumGroupRepository;
            _forumRepository = forumRepository;
            _forumTopicRepository = forumTopicRepository;
            _forumPostRepository = forumPostRepository;
            _forumPrivateMessageRepository = forumPrivateMessageRepository;
            _forumSubscriptionRepository = forumSubscriptionRepository;
            _forumSettings = forumSettings;
            _customerRepository = customerRepository;
            _genericAttributeService = genericAttributeService;
            _customerService = customerService;
            _workflowMessageService = workflowMessageService;
            _storeMappingRepository = storeMappingRepository;
            _services = services;
        }
コード例 #2
0
 public PromoOrderController(
     //IPromoUtilities promoUtilities,
     IPriceFormatter priceFormatter,
     IWorkContext workContext,
     PromoSettings promoSettings,
     IGenericAttributeService genericAttributeService,
     IOrderService orderService,
     IProductMappingService productMappingService,
     ILocalizationService localizationService,
     ICurrencyService currencyService,
     IPromoOrderService promoOrderService,
     IProductService productService)
 {
     //this._promoUtilities = promoUtilities;
     this._priceFormatter = priceFormatter;
     this._workContext = workContext;
     this._genericAttributeService = genericAttributeService;
     this._orderService = orderService;
     this._productMappingService = productMappingService;
     this._localizationService = localizationService;
     this._promoSettings = promoSettings;
     this._currencyService = currencyService;
     this._promoOrderService = promoOrderService;
     this._productService = productService;
 }
コード例 #3
0
 public CustomerController(IAuthenticationService authenticationService,
     ILocalizationService localizationService,
      IWorkContext workContext,
      ICustomerService customerService,
      ICustomerRegistrationService customerRegistrationService,
     CustomerSettings customerSettings,
      IAddressService addressService,
      IWebHelper webHelper,
      LocalizationSettings localizationSettings, 
     CaptchaSettings captchaSettings,
     SecuritySettings securitySettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     ICustomerActivityService customerActivityService,
     DateTimeSettings dateTimeSettings,
     IDateTimeHelper dateTimeHelper,
     IGenericAttributeService genericAttributeService,
     IPermissionService permissionService)
 {
     this._authenticationService = authenticationService;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._customerRegistrationService = customerRegistrationService;
     this._customerService = customerService;
     this._customerSettings = customerSettings;
     this._addressService = addressService;
     this._webHelper = webHelper;
     this._localizationSettings = localizationSettings;
     this._captchaSettings = captchaSettings;
     this._securitySettings = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._customerActivityService = customerActivityService;
     this._dateTimeSettings = dateTimeSettings;
     this._dateTimeHelper = dateTimeHelper;
     this._genericAttributeService = genericAttributeService;
 }
コード例 #4
0
 public WebWorkContext(HttpContextBase httpContext,
     ICustomerService customerService,
     IVendorService vendorService,
     IStoreContext storeContext,
     IAuthenticationService authenticationService,
     ILanguageService languageService,
     ICurrencyService currencyService,
     IGenericAttributeService genericAttributeService,
     TaxSettings taxSettings, 
     CurrencySettings currencySettings,
     LocalizationSettings localizationSettings,
     IUserAgentHelper userAgentHelper,
     IStoreMappingService storeMappingService)
 {
     this._httpContext = httpContext;
     this._customerService = customerService;
     this._vendorService = vendorService;
     this._storeContext = storeContext;
     this._authenticationService = authenticationService;
     this._languageService = languageService;
     this._currencyService = currencyService;
     this._genericAttributeService = genericAttributeService;
     this._taxSettings = taxSettings;
     this._currencySettings = currencySettings;
     this._localizationSettings = localizationSettings;
     this._userAgentHelper = userAgentHelper;
     this._storeMappingService = storeMappingService;
 }
コード例 #5
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="workContext">Work context</param>
 /// <param name="storeContext">Store context</param>
 /// <param name="priceCalculationService">Price calculation service</param>
 /// <param name="taxService">Tax service</param>
 /// <param name="shippingService">Shipping service</param>
 /// <param name="paymentService">Payment service</param>
 /// <param name="checkoutAttributeParser">Checkout attribute parser</param>
 /// <param name="discountService">Discount service</param>
 /// <param name="giftCardService">Gift card service</param>
 /// <param name="genericAttributeService">Generic attribute service</param>
 /// <param name="taxSettings">Tax settings</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 /// <param name="shippingSettings">Shipping settings</param>
 /// <param name="shoppingCartSettings">Shopping cart settings</param>
 /// <param name="catalogSettings">Catalog settings</param>
 public OrderTotalCalculationService(IWorkContext workContext,
     IStoreContext storeContext,
     IPriceCalculationService priceCalculationService,
     ITaxService taxService,
     IShippingService shippingService,
     IPaymentService paymentService,
     ICheckoutAttributeParser checkoutAttributeParser,
     IDiscountService discountService,
     IGiftCardService giftCardService,
     IGenericAttributeService genericAttributeService,
     TaxSettings taxSettings,
     RewardPointsSettings rewardPointsSettings,
     ShippingSettings shippingSettings,
     ShoppingCartSettings shoppingCartSettings,
     CatalogSettings catalogSettings)
 {
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._priceCalculationService = priceCalculationService;
     this._taxService = taxService;
     this._shippingService = shippingService;
     this._paymentService = paymentService;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._discountService = discountService;
     this._giftCardService = giftCardService;
     this._genericAttributeService = genericAttributeService;
     this._taxSettings = taxSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._shippingSettings = shippingSettings;
     this._shoppingCartSettings = shoppingCartSettings;
     this._catalogSettings = catalogSettings;
 }
コード例 #6
0
        public PayPalExpressController(
			IPaymentService paymentService, IOrderService orderService,
			IOrderProcessingService orderProcessingService,
			ILogger logger, 
			PaymentSettings paymentSettings, ILocalizationService localizationService,
			OrderSettings orderSettings,
			ICurrencyService currencyService, CurrencySettings currencySettings,
			IOrderTotalCalculationService orderTotalCalculationService, ICustomerService customerService,
			IGenericAttributeService genericAttributeService,
            IComponentContext ctx, ICommonServices services,
            IStoreService storeService)
        {
            _paymentService = paymentService;
            _orderService = orderService;
            _orderProcessingService = orderProcessingService;
            _logger = logger;
            _paymentSettings = paymentSettings;
            _localizationService = localizationService;
            _orderSettings = orderSettings;
            _currencyService = currencyService;
            _currencySettings = currencySettings;
            _orderTotalCalculationService = orderTotalCalculationService;
            _customerService = customerService;
            _genericAttributeService = genericAttributeService;
            _services = services;
            _storeService = storeService;

            _helper = new PluginHelper(ctx, "SmartStore.PayPal", "Plugins.Payments.PayPalExpress");

            T = NullLocalizer.Instance;
        }
コード例 #7
0
 public VendorController(ICustomerService customerService, 
     ILocalizationService localizationService,
     IVendorService vendorService, 
     IPermissionService permissionService,
     IUrlRecordService urlRecordService,
     ILanguageService languageService,
     ILocalizedEntityService localizedEntityService,
     VendorSettings vendorSettings,
     IPictureService pictureService,
     IProductService productService,
     IWorkContext workContext,
     IGenericAttributeService genericAttributeService,
     IWorkflowMessageService workflowMessageService)
 {
     this._customerService = customerService;
     this._localizationService = localizationService;
     this._vendorService = vendorService;
     this._permissionService = permissionService;
     this._urlRecordService = urlRecordService;
     this._languageService = languageService;
     this._localizedEntityService = localizedEntityService;
     this._vendorSettings = vendorSettings;
     this._pictureService = pictureService;
     this._productService = productService;
     this._workContext = workContext;
     this._workflowMessageService = workflowMessageService;
     this._genericAttributeService = genericAttributeService;
 }
コード例 #8
0
        public WebWorkContext(Func<string, ICacheManager> cacheManager,
            HttpContextBase httpContext,
            ICustomerService customerService,
			IStoreContext storeContext,
            IAuthenticationService authenticationService,
            ILanguageService languageService,
            ICurrencyService currencyService,
			IGenericAttributeService attrService,
            TaxSettings taxSettings, CurrencySettings currencySettings,
            LocalizationSettings localizationSettings, Lazy<ITaxService> taxService,
            IStoreService storeService, ISettingService settingService,
			IUserAgent userAgent)
        {
            this._cacheManager = cacheManager("static");
            this._httpContext = httpContext;
            this._customerService = customerService;
            this._storeContext = storeContext;
            this._authenticationService = authenticationService;
            this._languageService = languageService;
            this._attrService = attrService;
            this._currencyService = currencyService;
            this._taxSettings = taxSettings;
            this._taxService = taxService;
            this._currencySettings = currencySettings;
            this._localizationSettings = localizationSettings;
            this._storeService = storeService;
            this._settingService = settingService;
            this._userAgent = userAgent;
        }
コード例 #9
0
 /// <summary>
 /// Ctor
 /// </summary>
 public DiscountService(ICacheManager cacheManager,
     IRepository<Discount> discountRepository,
     IRepository<DiscountUsageHistory> discountUsageHistoryRepository,
     ILocalizationService localizationService,
     IStoreContext storeContext,
     IGenericAttributeService genericAttributeService,
     IPluginFinder pluginFinder,
     IEventPublisher eventPublisher,
     IRepository<Product> productRepository,
     IRepository<Category> categoryRepository,
     IRepository<Manufacturer> manufacturerRepository
     )
 {
     this._cacheManager = cacheManager;
     this._discountRepository = discountRepository;
     this._discountUsageHistoryRepository = discountUsageHistoryRepository;
     this._localizationService = localizationService;
     this._storeContext = storeContext;
     this._genericAttributeService = genericAttributeService;
     this._pluginFinder = pluginFinder;
     this._eventPublisher = eventPublisher;
     this._productRepository = productRepository;
     this._categoryRepository = categoryRepository;
     this._manufacturerRepository = manufacturerRepository;
 }
コード例 #10
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="forumGroupRepository">Forum group repository</param>
 /// <param name="forumRepository">Forum repository</param>
 /// <param name="forumTopicRepository">Forum topic repository</param>
 /// <param name="forumPostRepository">Forum post repository</param>
 /// <param name="forumPrivateMessageRepository">Private message repository</param>
 /// <param name="forumSubscriptionRepository">Forum subscription repository</param>
 /// <param name="forumSettings">Forum settings</param>
 /// <param name="customerRepository">Customer repository</param>
 /// <param name="genericAttributeService">Generic attribute service</param>
 /// <param name="customerService">Customer service</param>
 /// <param name="workContext">Work context</param>
 /// <param name="workflowMessageService">Workflow message service</param>
 /// <param name="eventPublisher">Event published</param>
 public ForumService(ICacheManager cacheManager,
     IRepository<ForumGroup> forumGroupRepository,
     IRepository<Forum> forumRepository,
     IRepository<ForumTopic> forumTopicRepository,
     IRepository<ForumPost> forumPostRepository,
     IRepository<PrivateMessage> forumPrivateMessageRepository,
     IRepository<ForumSubscription> forumSubscriptionRepository,
     ForumSettings forumSettings,
     IRepository<Customer> customerRepository,
     IGenericAttributeService genericAttributeService,
     ICustomerService customerService,
     IWorkContext workContext,
     IWorkflowMessageService workflowMessageService,
     IEventPublisher eventPublisher
     )
 {
     this._cacheManager = cacheManager;
     this._forumGroupRepository = forumGroupRepository;
     this._forumRepository = forumRepository;
     this._forumTopicRepository = forumTopicRepository;
     this._forumPostRepository = forumPostRepository;
     this._forumPrivateMessageRepository = forumPrivateMessageRepository;
     this._forumSubscriptionRepository = forumSubscriptionRepository;
     this._forumSettings = forumSettings;
     this._customerRepository = customerRepository;
     this._genericAttributeService = genericAttributeService;
     this._customerService = customerService;
     this._workContext = workContext;
     this._workflowMessageService = workflowMessageService;
     _eventPublisher = eventPublisher;
 }
コード例 #11
0
 public ExternalAuthorizer(IAuthenticationService authenticationService,
     IOpenAuthenticationService openAuthenticationService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService, 
     ICustomerActivityService customerActivityService, 
     ILocalizationService localizationService,
     IWorkContext workContext,
     IStoreContext storeContext,
     CustomerSettings customerSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IShoppingCartService shoppingCartService,
     IWorkflowMessageService workflowMessageService,
     IEventPublisher eventPublisher,
     LocalizationSettings localizationSettings)
 {
     this._authenticationService = authenticationService;
     this._openAuthenticationService = openAuthenticationService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerActivityService = customerActivityService;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._shoppingCartService = shoppingCartService;
     this._workflowMessageService = workflowMessageService;
     this._eventPublisher = eventPublisher;
     this._localizationSettings = localizationSettings;
 }
コード例 #12
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="cacheManager">Cache manager</param>
        /// <param name="shippingMethodRepository">Shipping method repository</param>
        /// <param name="logger">Logger</param>
        /// <param name="productAttributeParser">Product attribute parser</param>
        /// <param name="productService">Product service</param>
        /// <param name="checkoutAttributeParser">Checkout attribute parser</param>
        /// <param name="genericAttributeService">Generic attribute service</param>
        /// <param name="localizationService">Localization service</param>
        /// <param name="shippingSettings">Shipping settings</param>
        /// <param name="pluginFinder">Plugin finder</param>
        /// <param name="eventPublisher">Event published</param>
        /// <param name="shoppingCartSettings">Shopping cart settings</param>
        /// <param name="settingService">Setting service</param>
        public ShippingService(ICacheManager cacheManager, 
            IRepository<ShippingMethod> shippingMethodRepository,
            ILogger logger,
            IProductAttributeParser productAttributeParser,
			IProductService productService,
            ICheckoutAttributeParser checkoutAttributeParser,
			IGenericAttributeService genericAttributeService,
            ILocalizationService localizationService,
            ShippingSettings shippingSettings,
            IPluginFinder pluginFinder,
            IEventPublisher eventPublisher,
            ShoppingCartSettings shoppingCartSettings,
			ISettingService settingService,
			IProviderManager providerManager)
        {
            this._cacheManager = cacheManager;
            this._shippingMethodRepository = shippingMethodRepository;
            this._logger = logger;
            this._productAttributeParser = productAttributeParser;
            this._productService = productService;
            this._checkoutAttributeParser = checkoutAttributeParser;
            this._genericAttributeService = genericAttributeService;
            this._localizationService = localizationService;
            this._shippingSettings = shippingSettings;
            this._pluginFinder = pluginFinder;
            this._eventPublisher = eventPublisher;
            this._shoppingCartSettings = shoppingCartSettings;
            this._settingService = settingService;
            this._providerManager = providerManager;
        }
コード例 #13
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="sciRepository">Shopping cart repository</param>
 /// <param name="workContext">Work context</param>
 /// <param name="storeContext">Store context</param>
 /// <param name="currencyService">Currency service</param>
 /// <param name="productService">Product settings</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="productAttributeParser">Product attribute parser</param>
 /// <param name="checkoutAttributeService">Checkout attribute service</param>
 /// <param name="checkoutAttributeParser">Checkout attribute parser</param>
 /// <param name="priceFormatter">Price formatter</param>
 /// <param name="customerService">Customer service</param>
 /// <param name="shoppingCartSettings">Shopping cart settings</param>
 /// <param name="eventPublisher">Event publisher</param>
 /// <param name="permissionService">Permission service</param>
 /// <param name="aclService">ACL service</param>
 /// <param name="storeMappingService">Store mapping service</param>
 /// <param name="genericAttributeService">Generic attribute service</param>
 public ShoppingCartService(IRepository<ShoppingCartItem> sciRepository,
     IWorkContext workContext, IStoreContext storeContext,
     ICurrencyService currencyService,
     IProductService productService, ILocalizationService localizationService,
     IProductAttributeParser productAttributeParser,
     ICheckoutAttributeService checkoutAttributeService,
     ICheckoutAttributeParser checkoutAttributeParser,
     IPriceFormatter priceFormatter,
     ICustomerService customerService,
     ShoppingCartSettings shoppingCartSettings,
     IEventPublisher eventPublisher,
     IPermissionService permissionService, 
     IAclService aclService,
     IStoreMappingService storeMappingService,
     IGenericAttributeService genericAttributeService)
 {
     this._sciRepository = sciRepository;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._currencyService = currencyService;
     this._productService = productService;
     this._localizationService = localizationService;
     this._productAttributeParser = productAttributeParser;
     this._checkoutAttributeService = checkoutAttributeService;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._priceFormatter = priceFormatter;
     this._customerService = customerService;
     this._shoppingCartSettings = shoppingCartSettings;
     this._eventPublisher = eventPublisher;
     this._permissionService = permissionService;
     this._aclService = aclService;
     this._storeMappingService = storeMappingService;
     this._genericAttributeService= genericAttributeService;
 }
コード例 #14
0
        public DiscountService(
            IPromoUtilities promoUtilities,
            PromoSettings promoSettings,
            ICacheManager cacheManager,
            IRepository<Discount> discountRepository,
            IRepository<DiscountRequirement> discountRequirementRepository,
            IRepository<DiscountUsageHistory> discountUsageHistoryRepository,
            IStoreContext storeContext,
            IGenericAttributeService genericAttributeService,
            IPluginFinder pluginFinder,
            IEventPublisher eventPublisher) : 
                base(
                    cacheManager,
                    discountRepository,
                    discountRequirementRepository,
                    discountUsageHistoryRepository,
                    storeContext,
                    genericAttributeService,
                    pluginFinder,
                    eventPublisher)
        {
            this._promoUtilities = promoUtilities;
            this._promoSettings = promoSettings;

            this._discountRepository = discountRepository;
            this._discountUsageHistoryRepository = discountUsageHistoryRepository;
            this._cacheManager = cacheManager;
            this._eventPublisher = eventPublisher;
        }
        public HomeInstallationQuoteController(
            IWorkContext workContext,
            ISettingService settingService,
            IGenericAttributeService genericAttributeService,
            ILocalizationService localizationService,
            IMessageTokenProvider messageTokenProvider,
            IEmailAccountService emailAccountService,
            IEventPublisher eventPublisher,
            IMessageTemplateService messageTemplateService,
            ITokenizer tokenizer,
            IQueuedEmailService queuedEmailService,
            IProductService productService,

            CaptchaSettings captchaSettings,
            EmailAccountSettings emailAccountSettings)
        {
            _workContext = workContext;
            _settingService = settingService;
            _genericAttributeService = genericAttributeService;
            _localizationService = localizationService;
            _messageTokenProvider = messageTokenProvider;
            _emailAccountService = emailAccountService;
            _eventPublisher = eventPublisher;
            _messageTemplateService = messageTemplateService;
            _tokenizer = tokenizer;
            _queuedEmailService = queuedEmailService;
            _productService = productService;
            _captchaSettings = captchaSettings;
            _emailAccountSettings = emailAccountSettings;
        }
コード例 #16
0
 public GoogleCheckoutPaymentProcessor(ISettingService settingService, 
     IWebHelper webHelper, ITaxService taxService,
     IShippingService shippingService, 
     IOrderTotalCalculationService orderTotalCalculationService,
     IProductAttributeFormatter productAttributeFormatter,
     IPriceCalculationService priceCalculationService, IWorkContext workContext,
     ICustomerService customerService, IGenericAttributeService genericAttributeService, 
     ICountryService countryService,
     IStateProvinceService stateProvinceService, IOrderProcessingService orderProcessingService,
     IOrderService orderService, ILogger logger, HttpContextBase httpContext)
 {
     this._settingService = settingService;
     this._webHelper = webHelper;
     this._taxService = taxService;
     this._shippingService = shippingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._productAttributeFormatter = productAttributeFormatter;
     this._priceCalculationService = priceCalculationService;
     this._workContext = workContext;
     this._customerService = customerService;
     this._genericAttributeService = genericAttributeService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._orderProcessingService = orderProcessingService;
     this._orderService = orderService;
     this._logger = logger;
     this._httpContext = httpContext;
 }
コード例 #17
0
 public ThemeContext(IWorkContext workContext, IGenericAttributeService genericAttributeService,
     StoreInformationSettings storeInformationSettings, IThemeProvider themeProvider)
 {
     this._workContext = workContext;
     this._genericAttributeService = genericAttributeService;
     this._storeInformationSettings = storeInformationSettings;
     this._themeProvider = themeProvider;
 }
コード例 #18
0
ファイル: ThemeContext.cs プロジェクト: khiemnd777/aaron-core
 public ThemeContext(ICurrentActivity currentActivity, IGenericAttributeService genericAttributeService,
     WebInformationSettings webInformationSettings, IThemeProvider themeProvider)
 {
     this._currentActivity = currentActivity;
     this._genericAttributeService = genericAttributeService;
     this._webInformationSettings = webInformationSettings;
     this._themeProvider = themeProvider;
 }
コード例 #19
0
        public PayPalExpressCheckoutFilter(IGenericAttributeService genericAttributeService,
            HttpContextBase httpContext, ICommonServices services,
            ICustomerService customerService)
		{
            _genericAttributeService = genericAttributeService;
            _httpContext = httpContext;
            _services = services;
            _customerService = customerService;
		}
コード例 #20
0
        public CheckoutController(IWorkContext workContext,
            IStoreContext storeContext,
            IStoreMappingService storeMappingService,
            IShoppingCartService shoppingCartService, 
            ILocalizationService localizationService, 
            ITaxService taxService, 
            ICurrencyService currencyService, 
            IPriceFormatter priceFormatter, 
            IOrderProcessingService orderProcessingService,
            ICustomerService customerService, 
            IGenericAttributeService genericAttributeService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            IShippingService shippingService, 
            IPaymentService paymentService,
            IPluginFinder pluginFinder,
            IOrderTotalCalculationService orderTotalCalculationService,
            ILogger logger,
            IOrderService orderService,
            IWebHelper webHelper,
            HttpContextBase httpContext,
            IMobileDeviceHelper mobileDeviceHelper,
            OrderSettings orderSettings, 
            RewardPointsSettings rewardPointsSettings,
            PaymentSettings paymentSettings,
            ShippingSettings shippingSettings,
            AddressSettings addressSettings)
        {
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._storeMappingService = storeMappingService;
            this._shoppingCartService = shoppingCartService;
            this._localizationService = localizationService;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._priceFormatter = priceFormatter;
            this._orderProcessingService = orderProcessingService;
            this._customerService = customerService;
            this._genericAttributeService = genericAttributeService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._shippingService = shippingService;
            this._paymentService = paymentService;
            this._pluginFinder = pluginFinder;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._logger = logger;
            this._orderService = orderService;
            this._webHelper = webHelper;
            this._httpContext = httpContext;
            this._mobileDeviceHelper = mobileDeviceHelper;

            this._orderSettings = orderSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._paymentSettings = paymentSettings;
            this._shippingSettings = shippingSettings;
            this._addressSettings = addressSettings;
        }
コード例 #21
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="workContext">Work context</param>
 /// <param name="genericAttributeService">Generic attribute service</param>
 /// <param name="settingService">Setting service</param>
 /// <param name="dateTimeSettings">Datetime settings</param>
 public DateTimeHelper(IWorkContext workContext,
     IGenericAttributeService genericAttributeService,
     ISettingService settingService, 
     DateTimeSettings dateTimeSettings)
 {
     this._workContext = workContext;
     this._genericAttributeService = genericAttributeService;
     this._settingService = settingService;
     this._dateTimeSettings = dateTimeSettings;
 }
コード例 #22
0
ファイル: ThemeContext.cs プロジェクト: hsb0307/Nut.NET
 public ThemeContext(IWorkContext workContext,
     IStoreContext storeContext,
     IThemeProvider themeProvider,
     IGenericAttributeService genericAttributeService)
 {
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._themeProvider = themeProvider;
     this._genericAttributeService = genericAttributeService;
 }
コード例 #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController" /> class.
 /// </summary>
 /// <param name="customerService">The customer service.</param>
 /// <param name="workContext">The work context.</param>
 /// <param name="genericAttributeService">The generic attribute service.</param>
 /// <param name="webHelper">The web helper.</param>
 /// <param name="settingService">The setting service.</param>
 /// <param name="commonSettings">The common settings.</param>
 public HomeController(ICustomerService customerService, IWorkContext workContext,
     IGenericAttributeService genericAttributeService, IWebHelper webHelper, ISettingService settingService, CommonSettings commonSettings)
 {
     _customerService = customerService;
     _workContext = workContext;
     _genericAttributeService = genericAttributeService;
     _webHelper = webHelper;
     _settingService = settingService;
     _commonSettings = commonSettings;
 }
コード例 #24
0
 public SecurityController(IAuthenticationService authenticationService, 
     IUserRegistrationService userRegistrationService, IGenericAttributeService attributeService,
     IWorkContext workContext, IUserService userService, IWorkflowMessageService messageService)
 {
     this.authenticationService   = authenticationService;
     this.workContext             = workContext;
     this.messageService          = messageService;
     this.attributeService        = attributeService;
     this.userRegistrationService = userRegistrationService;
     this.userService             = userService;
 }
コード例 #25
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="UserService">User service</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 public UserRegistrationService(IUserService userService, IUserActivityService userActivityService,
     IEncryptionService encryptionService, IGenericAttributeService attributeService,
     ILocalizationService localizationService, IWebHelper webHelper)
 {
     this.userService         = userService;
     this.attributeService    = attributeService;
     this.userActivityService = userActivityService;
     this.encryptionService   = encryptionService;
     this.webHelper           = webHelper;
     this.localizationService = localizationService;
 }
コード例 #26
0
		public WebApiPluginService(
			IRepository<GenericAttribute> genericAttributes,
			IRepository<Customer> customers,
			ICustomerService customerService,
			IGenericAttributeService genericAttributeService)
		{
			_genericAttributes = genericAttributes;
			_customers = customers;
			_customerService = customerService;
			_genericAttributeService = genericAttributeService;
		}
コード例 #27
0
ファイル: CustomerExtensions.cs プロジェクト: sounj142/aaabbb
        /// <summary>
        /// Lấy tên đầy đủ của customer( dữ liệu từ generic attribute ).
        /// </summary>
        public static string GetFullName(this Customer customer, IGenericAttributeService genericAttributeService = null)
        {
            if (genericAttributeService == null)
                genericAttributeService = EngineContext.Current.Resolve<IGenericAttributeService>();
            string firstName = customer.GetAttribute<string>(SystemCustomerAttributeNames.FirstName,
                genericAttributeService);
            string lastName = customer.GetAttribute<string>(SystemCustomerAttributeNames.FirstName,
                genericAttributeService);

            return Extensions.GetFullName(firstName, lastName);
        }
コード例 #28
0
 public GroupDealsController(IGroupDealService groupDealService,
     IRepository<Product> productRepo,
     IGroupDealService groupDealProductService,
     IGenericAttributeService genericAttributeService,
     IProductService productService)
 {
     _groupDealService = groupDealService;
     _productRepo = productRepo;
     _groupDealProductService = groupDealProductService;
     _genericAttributeService = genericAttributeService;
     _productService = productService;
 }
コード例 #29
0
 public DateTimeHelper(IWorkContext workContext,
     IGenericAttributeService genericAttributeService,
     ISettingService settingService,
     DateTimeSettings dateTimeSettings,
     IStoreContext storeContext)
 {
     _workContext = workContext;
     _genericAttributeService = genericAttributeService;
     _settingService = settingService;
     _dateTimeSettings = dateTimeSettings;
     _storeContext = storeContext;
 }
コード例 #30
0
 public CustomersImportService(
     ICustomerService customerService, 
     ICurrencyService currencyService, 
     IDiscountService discountService,
     ILanguageService languageService,
     ICountryService countryService,
     IGenericAttributeService genericAttributeService
     )
     : base(discountService, currencyService, languageService, genericAttributeService, countryService)
 {
     this._customerService = customerService;
 }
コード例 #31
0
 public ExternalAuthorizer(IAuthenticationService authenticationService,
                           IOpenAuthenticationService openAuthenticationService,
                           IGenericAttributeService genericAttributeService,
                           ICustomerRegistrationService customerRegistrationService,
                           ICustomerActivityService customerActivityService, ILocalizationService localizationService,
                           IWorkContext workContext, CustomerSettings customerSettings,
                           ExternalAuthenticationSettings externalAuthenticationSettings,
                           IShoppingCartService shoppingCartService,
                           IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings)
 {
     this._authenticationService       = authenticationService;
     this._openAuthenticationService   = openAuthenticationService;
     this._genericAttributeService     = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerActivityService     = customerActivityService;
     this._localizationService         = localizationService;
     this._workContext      = workContext;
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._shoppingCartService            = shoppingCartService;
     this._workflowMessageService         = workflowMessageService;
     this._localizationSettings           = localizationSettings;
 }
コード例 #32
0
ファイル: UserService.cs プロジェクト: phatnguyen81/TinyCms
        public UserService(ICacheManager cacheManager,
                           IRepository <User> userRepository,
                           IRepository <UserRole> userRoleRepository,
                           IRepository <GenericAttribute> gaRepository,
                           IGenericAttributeService genericAttributeService,
                           IDataProvider dataProvider,
                           IDbContext dbContext,
                           IEventPublisher eventPublisher,
                           UserSettings userSettings,
                           CommonSettings commonSettings)
        {
            this._cacheManager       = cacheManager;
            this._userRepository     = userRepository;
            this._userRoleRepository = userRoleRepository;
            this._gaRepository       = gaRepository;

            this._genericAttributeService = genericAttributeService;
            this._dataProvider            = dataProvider;
            this._dbContext      = dbContext;
            this._eventPublisher = eventPublisher;
            this._userSettings   = userSettings;
            this._commonSettings = commonSettings;
        }
コード例 #33
0
ファイル: VendorModelFactory.cs プロジェクト: wzh9801/src
        public VendorModelFactory(IWorkContext workContext,
                                  ILocalizationService localizationService,
                                  IPictureService pictureService,
                                  IGenericAttributeService genericAttributeService,
                                  IVendorAttributeParser vendorAttributeParser,
                                  IVendorAttributeService vendorAttributeService,
                                  CaptchaSettings captchaSettings,
                                  CommonSettings commonSettings,
                                  MediaSettings mediaSettings,
                                  VendorSettings vendorSettings)
        {
            this._workContext             = workContext;
            this._localizationService     = localizationService;
            this._pictureService          = pictureService;
            this._genericAttributeService = genericAttributeService;
            this._vendorAttributeParser   = vendorAttributeParser;
            this._vendorAttributeService  = vendorAttributeService;

            this._captchaSettings = captchaSettings;
            this._commonSettings  = commonSettings;
            this._mediaSettings   = mediaSettings;
            this._vendorSettings  = vendorSettings;
        }
コード例 #34
0
 public DownloadMasterDataTask(
     IGenericAttributeService genericAttributeService,
     IUserService userService,
     IUserActivityService userActivityService,
     IConfiguration configuration,
     IRepository <Store> storeRepository,
     IRepository <Role> roleRepository,
     IRepository <User> userRepository,
     IRepository <Item> itemRepository,
     IRepository <UserPassword> userPasswordRepository,
     ILogger logger)
 {
     _genericAttributeService = genericAttributeService;
     _userService             = userService;
     _userActivityService     = userActivityService;
     _configuration           = configuration;
     _storeRepository         = storeRepository;
     _roleRepository          = roleRepository;
     _userRepository          = userRepository;
     _itemRepository          = itemRepository;
     _userPasswordRepository  = userPasswordRepository;
     _logger = logger;
 }
コード例 #35
0
 public CustomerService(ICacheManager cacheManager,
                        IRepository <Customer> customerRepository,
                        IRepository <CustomerRole> customerRoleRepository,
                        IRepository <GenericAttribute> gaRepository,
                        IGenericAttributeService genericAttributeService,
                        IDataProvider dataProvider,
                        IDbContext dbContext,
                        IEventPublisher eventPublisher,
                        CustomerSettings customerSettings,
                        CommonSettings commonSettings, IRepository <PollVotingRecord> pollVotingRecordRepository)
 {
     _cacheManager            = cacheManager;
     _customerRepository      = customerRepository;
     _customerRoleRepository  = customerRoleRepository;
     _gaRepository            = gaRepository;
     _genericAttributeService = genericAttributeService;
     _dataProvider            = dataProvider;
     _dbContext                  = dbContext;
     _eventPublisher             = eventPublisher;
     _customerSettings           = customerSettings;
     _commonSettings             = commonSettings;
     _pollVotingRecordRepository = pollVotingRecordRepository;
 }
コード例 #36
0
 public AddressViewModelService(ILocalizationService localizationService,
                                IStateProvinceService stateProvinceService,
                                ICountryService countryService,
                                IAddressAttributeService addressAttributeService,
                                IAddressAttributeParser addressAttributeParser,
                                IAddressAttributeFormatter addressAttributeFormatter,
                                IWorkContext workContext,
                                IStoreContext storeContext,
                                IGenericAttributeService genericAttributeService,
                                AddressSettings addressSettings
                                )
 {
     _localizationService       = localizationService;
     _stateProvinceService      = stateProvinceService;
     _countryService            = countryService;
     _addressAttributeService   = addressAttributeService;
     _addressAttributeParser    = addressAttributeParser;
     _addressAttributeFormatter = addressAttributeFormatter;
     _workContext             = workContext;
     _storeContext            = storeContext;
     _genericAttributeService = genericAttributeService;
     _addressSettings         = addressSettings;
 }
コード例 #37
0
 public PayPalExpressProvider(
     ICurrencyService currencyService,
     IPriceCalculationService priceCalculationService,
     ITaxService taxService,
     IGenericAttributeService genericAttributeService,
     IStateProvinceService stateProvinceService,
     IGiftCardService giftCardService,
     IShippingService shippingService,
     ICustomerService customerService,
     ICountryService countryService,
     HttpContextBase httpContext)
 {
     _currencyService         = currencyService;
     _priceCalculationService = priceCalculationService;
     _taxService = taxService;
     _genericAttributeService = genericAttributeService;
     _stateProvinceService    = stateProvinceService;
     _giftCardService         = giftCardService;
     _shippingService         = shippingService;
     _customerService         = customerService;
     _countryService          = countryService;
     _httpContext             = httpContext;
 }
コード例 #38
0
 public ShippingPointComputationMethod(IShippingService shippingService,
                                       IStoreContext storeContext,
                                       IPriceCalculationService priceCalculationService,
                                       ISettingService settingService,
                                       IShippingPointService shippingPointService,
                                       ILocalizationService localizationService,
                                       IWorkContext workContext,
                                       IGenericAttributeService genericAttributeService,
                                       ICountryService countryService,
                                       IWebHelper webHelper
                                       )
 {
     this._shippingService         = shippingService;
     this._storeContext            = storeContext;
     this._priceCalculationService = priceCalculationService;
     this._settingService          = settingService;
     this._shippingPointService    = shippingPointService;
     this._localizationService     = localizationService;
     this._workContext             = workContext;
     this._genericAttributeService = genericAttributeService;
     this._countryService          = countryService;
     this._webHelper = webHelper;
 }
コード例 #39
0
 public PaymentGTPayController(
     IGenericAttributeService genericAttributeService,
     IOrderProcessingService orderProcessingService,
     IOrderService orderService,
     IPaymentService paymentService,
     IPermissionService permissionService,
     ILocalizationService localizationService,
     ILogger logger,
     INotificationService notificationService,
     ISettingService settingService,
     IStoreContext storeContext,
     IWebHelper webHelper,
     IWorkContext workContext,
     ShoppingCartSettings shoppingCartSettings,
     GTPayPaymentSettings GTPayPaymentSettings,
     CurrencySettings currencySettings,
     ICurrencyService currencyService,
     IEncryptionService encryptionService)
 {
     this._genericAttributeService = genericAttributeService;
     this._orderService            = orderService;
     this._orderProcessingService  = orderProcessingService;
     this._paymentService          = paymentService;
     this._permissionService       = permissionService;
     this._localizationService     = localizationService;
     this._logger = logger;
     this._notificationService  = notificationService;
     this._settingService       = settingService;
     this._shoppingCartSettings = shoppingCartSettings;
     this._storeContext         = storeContext;
     this._webHelper            = webHelper;
     this._workContext          = workContext;
     this._GTPayPaymentSettings = GTPayPaymentSettings;
     this._currencySettings     = currencySettings;
     this._currencyService      = currencyService;
     this._encryptionService    = encryptionService;
 }
コード例 #40
0
 public CommonModelFactory(
     CommonSettings commonSettings,
     UserSettings userSettings,
     RecordSettings recordSettings,
     IGenericAttributeService genericAttributeService,
     IStaticCacheManager cacheManager,
     IFileProviderHelper fileProvider,
     IDateTimeHelper dateTimeHelper,
     IHttpContextAccessor httpContextAccessor,
     IPageHeadBuilder pageHeadBuilder,
     IPermissionService permissionService,
     IPictureService pictureService,
     IUserService userService,
     IStoreService storeService,
     IWebHelper webHelper,
     IWorkContext workContext,
     ITenantContext tenantContext,
     IPluginService pluginService)
 {
     _commonSettings          = commonSettings;
     _userSettings            = userSettings;
     _recordSettings          = recordSettings;
     _genericAttributeService = genericAttributeService;
     _cacheManager            = cacheManager;
     _fileProvider            = fileProvider;
     _dateTimeHelper          = dateTimeHelper;
     _httpContextAccessor     = httpContextAccessor;
     _pageHeadBuilder         = pageHeadBuilder;
     _permissionService       = permissionService;
     _pictureService          = pictureService;
     _userService             = userService;
     _storeService            = storeService;
     _webHelper     = webHelper;
     _workContext   = workContext;
     _tenantContext = tenantContext;
     _pluginService = pluginService;
 }
コード例 #41
0
 public PaymentPaytmController(IWorkContext workContext,
                               IStoreService storeService,
                               ISettingService settingService,
                               IPaymentService paymentService,
                               IOrderService orderService,
                               IOrderProcessingService orderProcessingService,
                               IPermissionService permissionService,
                               IGenericAttributeService genericAttributeService,
                               ILocalizationService localizationService,
                               IStoreContext storeContext,
                               ILogger logger,
                               IWebHelper webHelper,
                               PaymentSettings paymentSettings,
                               PaytmPaymentSettings PaytmPaymentSettings,
                               ShoppingCartSettings shoppingCartSettings,
                               IPaymentPluginManager paymentPluginManager,
                               INotificationService notificationService
                               )
 {
     this._workContext             = workContext;
     this._storeService            = storeService;
     this._settingService          = settingService;
     this._paymentService          = paymentService;
     this._notificationService     = notificationService;
     this._orderService            = orderService;
     this._orderProcessingService  = orderProcessingService;
     this._permissionService       = permissionService;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._storeContext            = storeContext;
     this._logger               = logger;
     this._webHelper            = webHelper;
     this._paymentSettings      = paymentSettings;
     this._paytmPaymentSettings = PaytmPaymentSettings;
     this._shoppingCartSettings = shoppingCartSettings;
     _paymentPluginManager      = paymentPluginManager;
 }
コード例 #42
0
        public BlogController(ICommonServices services,
                              IBlogService blogService,
                              IPictureService pictureService,
                              ICustomerContentService customerContentService,
                              IDateTimeHelper dateTimeHelper,
                              IWebHelper webHelper,
                              ICacheManager cacheManager,
                              ICustomerActivityService customerActivityService,
                              IStoreMappingService storeMappingService,
                              ILanguageService languageService,
                              IGenericAttributeService genericAttributeService,
                              MediaSettings mediaSettings,
                              BlogSettings blogSettings,
                              LocalizationSettings localizationSettings,
                              CustomerSettings customerSettings,
                              CaptchaSettings captchaSettings,
                              SeoSettings seoSettings)
        {
            _services                = services;
            _blogService             = blogService;
            _pictureService          = pictureService;
            _customerContentService  = customerContentService;
            _dateTimeHelper          = dateTimeHelper;
            _webHelper               = webHelper;
            _cacheManager            = cacheManager;
            _customerActivityService = customerActivityService;
            _storeMappingService     = storeMappingService;
            _languageService         = languageService;
            _genericAttributeService = genericAttributeService;

            _mediaSettings        = mediaSettings;
            _blogSettings         = blogSettings;
            _localizationSettings = localizationSettings;
            _customerSettings     = customerSettings;
            _captchaSettings      = captchaSettings;
            _seoSettings          = seoSettings;
        }
コード例 #43
0
        public new void SetUp()
        {
            _shippingSettings = new ShippingSettings();
            _shippingSettings.ActiveShippingRateComputationMethodSystemNames = new List <string>();
            _shippingSettings.ActiveShippingRateComputationMethodSystemNames.Add("FixedRateTestShippingRateComputationMethod");

            _shippingMethodRepository = MockRepository.GenerateMock <IRepository <ShippingMethod> >();
            _logger = new NullLogger();
            _productAttributeParser  = MockRepository.GenerateMock <IProductAttributeParser>();
            _productService          = MockRepository.GenerateMock <IProductService>();
            _checkoutAttributeParser = MockRepository.GenerateMock <ICheckoutAttributeParser>();

            var cacheManager = new NullCache();

            var pluginFinder = new PluginFinder();

            _eventPublisher = MockRepository.GenerateMock <IEventPublisher>();
            _eventPublisher.Expect(x => x.Publish(Arg <object> .Is.Anything));

            _localizationService     = MockRepository.GenerateMock <ILocalizationService>();
            _genericAttributeService = MockRepository.GenerateMock <IGenericAttributeService>();
            _settingService          = MockRepository.GenerateMock <ISettingService>();

            _shoppingCartSettings = new ShoppingCartSettings();
            _shippingService      = new ShippingService(cacheManager,
                                                        _shippingMethodRepository,
                                                        _logger,
                                                        _productAttributeParser,
                                                        _productService,
                                                        _checkoutAttributeParser,
                                                        _genericAttributeService,
                                                        _localizationService,
                                                        _shippingSettings, pluginFinder, _eventPublisher,
                                                        _shoppingCartSettings,
                                                        _settingService,
                                                        this.ProviderManager);
        }
コード例 #44
0
 public PaymentPointCheckoutPayController(
     ICustomerService customerService,
     IWorkContext workContext,
     IStoreService storeService,
     ISettingService settingService,
     IPaymentService paymentService,
     IOrderService orderService,
     IOrderProcessingService orderProcessingService,
     IPermissionService permissionService,
     IGenericAttributeService genericAttributeService,
     ILocalizationService localizationService,
     IStoreContext storeContext,
     ILogger logger,
     IWebHelper webHelper,
     PaymentSettings paymentSettings,
     PointCheckoutPayPaymentSettings pointCheckoutPayPaymentSettings,
     ShoppingCartSettings shoppingCartSettings,
     PointCheckoutPayPaymentProcessor pointCheckoutPayPaymentProcessor)
 {
     this._customerService         = customerService;
     this._workContext             = workContext;
     this._storeService            = storeService;
     this._settingService          = settingService;
     this._paymentService          = paymentService;
     this._orderService            = orderService;
     this._orderProcessingService  = orderProcessingService;
     this._permissionService       = permissionService;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._storeContext            = storeContext;
     this._logger          = logger;
     this._webHelper       = webHelper;
     this._paymentSettings = paymentSettings;
     this._PointCheckoutPayPaymentSettings  = pointCheckoutPayPaymentSettings;
     this._shoppingCartSettings             = shoppingCartSettings;
     this._PointCheckoutPayPaymentProcessor = pointCheckoutPayPaymentProcessor;
 }
コード例 #45
0
        public virtual async Task <IActionResult> PrivacyPreference(IFormCollection form,
                                                                    [FromServices] StoreInformationSettings storeInformationSettings,
                                                                    [FromServices] IGenericAttributeService genericAttributeService,
                                                                    [FromServices] ICookiePreference _cookiePreference)
        {
            if (!storeInformationSettings.DisplayPrivacyPreference)
            {
                return(Json(new { success = false }));
            }

            var consent = "ConsentCookies";
            await genericAttributeService.SaveAttribute(_workContext.CurrentCustomer, SystemCustomerAttributeNames.ConsentCookies, "", _storeContext.CurrentStore.Id);

            var selectedConsentCookies = new List <string>();

            foreach (var item in form)
            {
                if (item.Key.StartsWith(consent))
                {
                    selectedConsentCookies.Add(item.Value);
                }
            }
            var dictionary     = new Dictionary <string, bool>();
            var consentCookies = _cookiePreference.GetConsentCookies();

            foreach (var item in consentCookies)
            {
                if (item.AllowToDisable)
                {
                    dictionary.Add(item.SystemName, selectedConsentCookies.Contains(item.SystemName));
                }
            }

            await genericAttributeService.SaveAttribute <Dictionary <string, bool> >(_workContext.CurrentCustomer, SystemCustomerAttributeNames.ConsentCookies, dictionary, _storeContext.CurrentStore.Id);

            return(Json(new { success = true }));
        }
コード例 #46
0
 public CatalogController(
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IProductService productService,
     ICategoryTemplateService categoryTemplateService,
     IManufacturerTemplateService manufacturerTemplateService,
     IOrderReportService orderReportService,
     IProductTagService productTagService,
     IRecentlyViewedProductsService recentlyViewedProductsService,
     ICompareProductsService compareProductsService,
     IGenericAttributeService genericAttributeService,
     IAclService aclService,
     IStoreMappingService storeMappingService,
     ICatalogSearchService catalogSearchService,
     MediaSettings mediaSettings,
     CatalogSettings catalogSettings,
     CatalogHelper helper,
     IBreadcrumb breadcrumb)
 {
     _categoryService               = categoryService;
     _manufacturerService           = manufacturerService;
     _productService                = productService;
     _categoryTemplateService       = categoryTemplateService;
     _manufacturerTemplateService   = manufacturerTemplateService;
     _orderReportService            = orderReportService;
     _productTagService             = productTagService;
     _recentlyViewedProductsService = recentlyViewedProductsService;
     _compareProductsService        = compareProductsService;
     _genericAttributeService       = genericAttributeService;
     _aclService           = aclService;
     _storeMappingService  = storeMappingService;
     _catalogSearchService = catalogSearchService;
     _mediaSettings        = mediaSettings;
     _catalogSettings      = catalogSettings;
     _helper     = helper;
     _breadcrumb = breadcrumb;
 }
コード例 #47
0
 public ZarinPalPaymentProcessor(CurrencySettings currencySettings,
                                 IHttpContextAccessor httpContextAccessor,
                                 IPaymentService paymentService,
                                 ICheckoutAttributeParser checkoutAttributeParser,
                                 ICurrencyService currencyService,
                                 IGenericAttributeService genericAttributeService,
                                 ILocalizationService localizationService,
                                 IOrderTotalCalculationService orderTotalCalculationService,
                                 ISettingService settingService,
                                 ITaxService taxService,
                                 IWebHelper webHelper,
                                 ZarinpalPaymentSettings ZarinPalPaymentSettings,
                                 ILanguageService languageService,
                                 IStoreService storeService,
                                 ICustomerService customerService,
                                 IWorkContext workContext,
                                 IStoreContext storeContext
                                 )
 {
     this._paymentService               = paymentService;
     this._httpContextAccessor          = httpContextAccessor;
     this._workContext                  = workContext;
     this._customerService              = customerService;
     this._storeService                 = storeService;
     this._currencySettings             = currencySettings;
     this._checkoutAttributeParser      = checkoutAttributeParser;
     this._currencyService              = currencyService;
     this._genericAttributeService      = genericAttributeService;
     this._localizationService          = localizationService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._settingService               = settingService;
     this._taxService = taxService;
     this._webHelper  = webHelper;
     this._ZarinPalPaymentSettings = ZarinPalPaymentSettings;
     this._storeContext            = storeContext;
     _languageService = languageService;
 }
コード例 #48
0
        public DemoController(IAuthenticationService authenticationService, IAccountUserService customerService,
                              IAccountUserRegistrationService customerRegistrationService,
                              IGenericAttributeService genericAttributeService,
                              IWorkflowMessageService workflowMessageService, IGovernmentService governmentService, IPropertyService propertyService,
                              IPropertyAllotService propertyAllotService, IPropertyLendService propertyLendService, IPropertyNewCreateService propertyNewCreateService,
                              IPropertyOffService propertyOffService, IPropertyRentService propertyRentService, IEncryptionService encryptionService, IPictureService pictureService,
                              IPropertyEditService propertyEditService, ICopyPropertyService copyPropertyService,
                              IWebHelper webHelper,
                              IWorkContext workContext,
                              AccountUserSettings customerSettings, CommonSettings commonSettings, SecuritySettings securitySettings, ISettingService settingService
                              )
        {
            _authenticationService          = authenticationService;
            _accountUserService             = customerService;
            _accountUserRegistrationService = customerRegistrationService;
            _genericAttributeService        = genericAttributeService;
            _workflowMessageService         = workflowMessageService;
            _governmentService        = governmentService;
            _propertyService          = propertyService;
            _propertyAllotService     = propertyAllotService;
            _propertyLendService      = propertyLendService;
            _propertyNewCreateService = propertyNewCreateService;
            _propertyEditService      = propertyEditService;
            _propertyOffService       = propertyOffService;
            _propertyRentService      = propertyRentService;
            _copyPropertyService      = copyPropertyService;
            _encryptionService        = encryptionService;
            _pictureService           = pictureService;

            _webHelper           = webHelper;
            _workContext         = workContext;
            _accountUserSettings = customerSettings;

            _commonSettings   = commonSettings;
            _securitySettings = securitySettings;
            _settingService   = settingService;
        }
コード例 #49
0
        public ArticleCatalogController(
            ICommonServices services,
            IClientService clientService,
            IArticleCategoryService articlecategoryService,
            IModelTemplateService modelTemplateService,
            IArticleService articleService, IArticleTagService articlesTagService,
            IPictureService pictureService,
            IGenericAttributeService genericAttributeService,
            IAclService aclService,
            ISiteMappingService siteMappingService,
            MediaSettings mediaSettings,
            ArticleCatalogSettings catalogSettings,
            IRecentlyViewedArticlesService recentlyViewedArticlesService,
            //IFilterService filterService,
            ArticleCatalogHelper helper,
            Lazy <ISearchProvider> searchProvider
            )
        {
            this._services                      = services;
            this._clientService                 = clientService;
            this._articlecategoryService        = articlecategoryService;
            this._articleService                = articleService;
            this._articlesTagService            = articlesTagService;
            this._modelTemplateService          = modelTemplateService;
            this._pictureService                = pictureService;
            this._genericAttributeService       = genericAttributeService;
            this._aclService                    = aclService;
            this._siteMappingService            = siteMappingService;
            this._recentlyViewedArticlesService = recentlyViewedArticlesService;
            //this._filterService = filterService;
            this._mediaSettings   = mediaSettings;
            this._catalogSettings = catalogSettings;

            this._helper         = helper;
            this._searchProvider = searchProvider;
            T = NullLocalizer.Instance;
        }
コード例 #50
0
 public SendInBlueMessageService(
     IMessageTemplateService messageTemplateService,
     IQueuedEmailService queuedEmailService,
     ILanguageService languageService,
     ITokenizer tokenizer,
     IEmailAccountService emailAccountService,
     IMessageTokenProvider messageTokenProvider,
     IStoreService storeService,
     IStoreContext storeContext,
     EmailAccountSettings emailAccountSettings,
     IEventPublisher eventPublisher,
     ISettingService settingService,
     IGenericAttributeService genericAttributeService,
     SendInBlueEmailManager sendInBlueEmailManager)
     : base(messageTemplateService,
            queuedEmailService,
            languageService,
            tokenizer,
            emailAccountService,
            messageTokenProvider,
            storeService,
            storeContext,
            emailAccountSettings,
            eventPublisher)
 {
     this._emailAccountService     = emailAccountService;
     this._eventPublisher          = eventPublisher;
     this._genericAttributeService = genericAttributeService;
     this._messageTemplateService  = messageTemplateService;
     this._messageTokenProvider    = messageTokenProvider;
     this._queuedEmailService      = queuedEmailService;
     this._settingService          = settingService;
     this._storeContext            = storeContext;
     this._storeService            = storeService;
     this._tokenizer = tokenizer;
     this._sendInBlueEmailManager = sendInBlueEmailManager;
 }
コード例 #51
0
 public OrdersController(IOrderApiService orderApiService,
                         IJsonFieldsSerializer jsonFieldsSerializer,
                         IAclService aclService,
                         ICustomerService customerService,
                         IStoreMappingService storeMappingService,
                         IStoreService storeService,
                         IDiscountService discountService,
                         ICustomerActivityService customerActivityService,
                         ILocalizationService localizationService,
                         IProductService productService,
                         IFactory <Order> factory,
                         IOrderProcessingService orderProcessingService,
                         IOrderService orderService,
                         IShipmentService shipmentService,
                         IShoppingCartService shoppingCartService,
                         IGenericAttributeService genericAttributeService,
                         IStoreContext storeContext,
                         IShippingService shippingService,
                         IPictureService pictureService,
                         IDTOHelper dtoHelper,
                         IProductAttributeConverter productAttributeConverter)
     : base(jsonFieldsSerializer, aclService, customerService, storeMappingService,
            storeService, discountService, customerActivityService, localizationService, pictureService)
 {
     _orderApiService           = orderApiService;
     _factory                   = factory;
     _orderProcessingService    = orderProcessingService;
     _orderService              = orderService;
     _shipmentService           = shipmentService;
     _shoppingCartService       = shoppingCartService;
     _genericAttributeService   = genericAttributeService;
     _storeContext              = storeContext;
     _shippingService           = shippingService;
     _dtoHelper                 = dtoHelper;
     _productService            = productService;
     _productAttributeConverter = productAttributeConverter;
 }
コード例 #52
0
 public CommonController(ICommonModelFactory commonModelFactory,
                         ILanguageService languageService,
                         ICurrencyService currencyService,
                         ILocalizationService localizationService,
                         IWorkContext workContext,
                         IStoreContext storeContext,
                         IQueuedEmailService queuedEmailService,
                         IEmailAccountService emailAccountService,
                         IThemeContext themeContext,
                         IGenericAttributeService genericAttributeService,
                         ICustomerActivityService customerActivityService,
                         TaxSettings taxSettings,
                         StoreInformationSettings storeInformationSettings,
                         EmailAccountSettings emailAccountSettings,
                         CommonSettings commonSettings,
                         LocalizationSettings localizationSettings,
                         CaptchaSettings captchaSettings
                         )
 {
     this._commonModelFactory       = commonModelFactory;
     this._languageService          = languageService;
     this._currencyService          = currencyService;
     this._localizationService      = localizationService;
     this._workContext              = workContext;
     this._storeContext             = storeContext;
     this._queuedEmailService       = queuedEmailService;
     this._emailAccountService      = emailAccountService;
     this._themeContext             = themeContext;
     this._genericAttributeService  = genericAttributeService;
     this._customerActivityService  = customerActivityService;
     this._taxSettings              = taxSettings;
     this._storeInformationSettings = storeInformationSettings;
     this._emailAccountSettings     = emailAccountSettings;
     this._commonSettings           = commonSettings;
     this._localizationSettings     = localizationSettings;
     this._captchaSettings          = captchaSettings;
 }
コード例 #53
0
        public NewsController(INewsService newsService,
                              IWorkContext workContext, IPictureService pictureService, ILocalizationService localizationService,
                              ICustomerContentService customerContentService, IDateTimeHelper dateTimeHelper,
                              IWorkflowMessageService workflowMessageService, IWebHelper webHelper,
                              ICacheManager cacheManager, ICustomerActivityService customerActivityService,
                              MediaSettings mediaSettings, NewsSettings newsSettings,
                              LocalizationSettings localizationSettings, CustomerSettings customerSettings,
                              StoreInformationSettings storeInformationSettings, CaptchaSettings captchaSettings,
                              ILanguageService languageService,
                              IUrlRecordService urlRecordService,
                              IGenericAttributeService genericAttributeService,
                              ICompanyInformationService companyInformationService,
                              ISettingService settingService)
        {
            this._newsService            = newsService;
            this._workContext            = workContext;
            this._pictureService         = pictureService;
            this._localizationService    = localizationService;
            this._customerContentService = customerContentService;
            this._dateTimeHelper         = dateTimeHelper;
            this._workflowMessageService = workflowMessageService;
            this._webHelper               = webHelper;
            this._cacheManager            = cacheManager;
            this._customerActivityService = customerActivityService;

            this._mediaSettings             = mediaSettings;
            this._newsSettings              = newsSettings;
            this._localizationSettings      = localizationSettings;
            this._customerSettings          = customerSettings;
            this._storeInformationSettings  = storeInformationSettings;
            this._captchaSettings           = captchaSettings;
            this._languageService           = languageService;
            this._urlRecordService          = urlRecordService;
            this._genericAttributeService   = genericAttributeService;
            this._companyInformationService = companyInformationService;
            this._settingService            = settingService;
        }
コード例 #54
0
 public ProfileModelFactory(CustomerSettings customerSettings,
                            ForumSettings forumSettings,
                            ICountryService countryService,
                            ICustomerService customerService,
                            IDateTimeHelper dateTimeHelper,
                            IForumService forumService,
                            IGenericAttributeService genericAttributeService,
                            ILocalizationService localizationService,
                            IPictureService pictureService,
                            IWorkContext workContext,
                            MediaSettings mediaSettings)
 {
     this._customerSettings        = customerSettings;
     this._forumSettings           = forumSettings;
     this._countryService          = countryService;
     this._customerService         = customerService;
     this._dateTimeHelper          = dateTimeHelper;
     this._forumService            = forumService;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._pictureService          = pictureService;
     this._workContext             = workContext;
     this._mediaSettings           = mediaSettings;
 }
コード例 #55
0
 public ExternalAuthenticationService(CustomerSettings customerSettings,
                                      ExternalAuthenticationSettings externalAuthenticationSettings,
                                      IGrandAuthenticationService authenticationService,
                                      ICustomerActivityService customerActivityService,
                                      ICustomerRegistrationService customerRegistrationService,
                                      ICustomerService customerService,
                                      IEventPublisher eventPublisher,
                                      IGenericAttributeService genericAttributeService,
                                      IHttpContextAccessor httpContextAccessor,
                                      ILocalizationService localizationService,
                                      IPluginFinder pluginFinder,
                                      IRepository <ExternalAuthenticationRecord> externalAuthenticationRecordRepository,
                                      IShoppingCartService shoppingCartService,
                                      IStoreContext storeContext,
                                      IWorkContext workContext,
                                      IWorkflowMessageService workflowMessageService,
                                      LocalizationSettings localizationSettings)
 {
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._authenticationService          = authenticationService;
     this._customerActivityService        = customerActivityService;
     this._customerRegistrationService    = customerRegistrationService;
     this._customerService         = customerService;
     this._eventPublisher          = eventPublisher;
     this._genericAttributeService = genericAttributeService;
     this._httpContextAccessor     = httpContextAccessor;
     this._localizationService     = localizationService;
     this._pluginFinder            = pluginFinder;
     this._externalAuthenticationRecordRepository = externalAuthenticationRecordRepository;
     this._shoppingCartService    = shoppingCartService;
     this._storeContext           = storeContext;
     this._workContext            = workContext;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings   = localizationSettings;
 }
コード例 #56
0
 public CustomerController(ICustomerService customerService,
                           IProductService productService,
                           IProductReviewViewModelService productReviewViewModelService,
                           IProductViewModelService productViewModelService,
                           ICustomerViewModelService customerViewModelService,
                           IGenericAttributeService genericAttributeService,
                           ICustomerRegistrationService customerRegistrationService,
                           ILocalizationService localizationService,
                           CustomerSettings customerSettings,
                           IWorkContext workContext,
                           IExportManager exportManager,
                           ICustomerAttributeParser customerAttributeParser,
                           ICustomerAttributeService customerAttributeService,
                           IAddressAttributeParser addressAttributeParser,
                           IAddressAttributeService addressAttributeService,
                           IWorkflowMessageService workflowMessageService,
                           IDownloadService downloadService)
 {
     _customerService = customerService;
     _productService  = productService;
     _productReviewViewModelService = productReviewViewModelService;
     _productViewModelService       = productViewModelService;
     _customerViewModelService      = customerViewModelService;
     _genericAttributeService       = genericAttributeService;
     _customerRegistrationService   = customerRegistrationService;
     _localizationService           = localizationService;
     _customerSettings         = customerSettings;
     _workContext              = workContext;
     _exportManager            = exportManager;
     _customerAttributeParser  = customerAttributeParser;
     _customerAttributeService = customerAttributeService;
     _addressAttributeParser   = addressAttributeParser;
     _addressAttributeService  = addressAttributeService;
     _workflowMessageService   = workflowMessageService;
     _downloadService          = downloadService;
 }
コード例 #57
0
 public ShippingService(IAddressService addressService,
                        ICacheManager cacheManager,
                        ICheckoutAttributeParser checkoutAttributeParser,
                        IEventPublisher eventPublisher,
                        IGenericAttributeService genericAttributeService,
                        ILocalizationService localizationService,
                        ILogger logger,
                        IPickupPluginManager pickupPluginManager,
                        IPriceCalculationService priceCalculationService,
                        IProductAttributeParser productAttributeParser,
                        IProductService productService,
                        IRepository <ShippingMethod> shippingMethodRepository,
                        IRepository <Warehouse> warehouseRepository,
                        IShippingPluginManager shippingPluginManager,
                        IStoreContext storeContext,
                        ShippingSettings shippingSettings,
                        ShoppingCartSettings shoppingCartSettings)
 {
     _addressService          = addressService;
     _cacheManager            = cacheManager;
     _checkoutAttributeParser = checkoutAttributeParser;
     _eventPublisher          = eventPublisher;
     _genericAttributeService = genericAttributeService;
     _localizationService     = localizationService;
     _logger = logger;
     _pickupPluginManager      = pickupPluginManager;
     _priceCalculationService  = priceCalculationService;
     _productAttributeParser   = productAttributeParser;
     _productService           = productService;
     _shippingMethodRepository = shippingMethodRepository;
     _warehouseRepository      = warehouseRepository;
     _shippingPluginManager    = shippingPluginManager;
     _storeContext             = storeContext;
     _shippingSettings         = shippingSettings;
     _shoppingCartSettings     = shoppingCartSettings;
 }
 public PayPalStandardPaymentProcessor(CurrencySettings currencySettings,
                                       ICheckoutAttributeParser checkoutAttributeParser,
                                       ICurrencyService currencyService,
                                       IGenericAttributeService genericAttributeService,
                                       IHttpContextAccessor httpContextAccessor,
                                       ILocalizationService localizationService,
                                       IOrderTotalCalculationService orderTotalCalculationService,
                                       ISettingService settingService,
                                       ITaxService taxService,
                                       IWebHelper webHelper,
                                       PayPalStandardPaymentSettings paypalStandardPaymentSettings)
 {
     this._currencySettings             = currencySettings;
     this._checkoutAttributeParser      = checkoutAttributeParser;
     this._currencyService              = currencyService;
     this._genericAttributeService      = genericAttributeService;
     this._httpContextAccessor          = httpContextAccessor;
     this._localizationService          = localizationService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._settingService = settingService;
     this._taxService     = taxService;
     this._webHelper      = webHelper;
     this._paypalStandardPaymentSettings = paypalStandardPaymentSettings;
 }
コード例 #59
0
 public PrivatPaymentProcessor(CurrencySettings currencySettings,
                               ICheckoutAttributeParser checkoutAttributeParser,
                               ICurrencyService currencyService,
                               IGenericAttributeService genericAttributeService,
                               IHttpContextAccessor httpContextAccessor,
                               ILocalizationService localizationService,
                               IPaymentService paymentService,
                               ISettingService settingService,
                               ITaxService taxService,
                               IWebHelper webHelper,
                               PrivatPaymentSettings privatPaymentSettings)
 {
     this._currencySettings        = currencySettings;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._currencyService         = currencyService;
     this._genericAttributeService = genericAttributeService;
     this._httpContextAccessor     = httpContextAccessor;
     this._localizationService     = localizationService;
     this._paymentService          = paymentService;
     this._settingService          = settingService;
     this._taxService            = taxService;
     this._webHelper             = webHelper;
     this._privatPaymentSettings = privatPaymentSettings;
 }
コード例 #60
0
 public CommonController(CaptchaSettings captchaSettings,
                         CommonSettings commonSettings,
                         ICommonModelFactory commonModelFactory,
                         ICurrencyService currencyService,
                         ICustomerActivityService customerActivityService,
                         IGenericAttributeService genericAttributeService,
                         ILanguageService languageService,
                         ILocalizationService localizationService,
                         ILogger logger,
                         IStoreContext storeContext,
                         IThemeContext themeContext,
                         IVendorService vendorService,
                         IWorkContext workContext,
                         IWorkflowMessageService workflowMessageService,
                         LocalizationSettings localizationSettings,
                         StoreInformationSettings storeInformationSettings,
                         VendorSettings vendorSettings)
 {
     this._captchaSettings         = captchaSettings;
     this._commonSettings          = commonSettings;
     this._commonModelFactory      = commonModelFactory;
     this._currencyService         = currencyService;
     this._customerActivityService = customerActivityService;
     this._genericAttributeService = genericAttributeService;
     this._languageService         = languageService;
     this._localizationService     = localizationService;
     this._logger                   = logger;
     this._storeContext             = storeContext;
     this._themeContext             = themeContext;
     this._vendorService            = vendorService;
     this._workContext              = workContext;
     this._workflowMessageService   = workflowMessageService;
     this._localizationSettings     = localizationSettings;
     this._storeInformationSettings = storeInformationSettings;
     this._vendorSettings           = vendorSettings;
 }