public PluginController(IPluginFinder pluginFinder,
            IPermissionService permissionService,
			ILanguageService languageService,
            PaymentSettings paymentSettings,
			ShippingSettings shippingSettings,
            TaxSettings taxSettings, 
			ExternalAuthenticationSettings externalAuthenticationSettings, 
            WidgetSettings widgetSettings,
			IProviderManager providerManager,
			PluginMediator pluginMediator,
			ICommonServices commonService)
		{
            this._pluginFinder = pluginFinder;
            this._permissionService = permissionService;
            this._languageService = languageService;
            this._paymentSettings = paymentSettings;
            this._shippingSettings = shippingSettings;
            this._taxSettings = taxSettings;
            this._externalAuthenticationSettings = externalAuthenticationSettings;
            this._widgetSettings = widgetSettings;
			this._providerManager = providerManager;
			this._pluginMediator = pluginMediator;
			this._commonService = commonService;

			T = NullLocalizer.Instance;
		}
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="paymentSettings">Payment settings</param>
 /// <param name="pluginFinder">Plugin finder</param>
 /// <param name="shoppingCartSettings">Shopping cart settings</param>
 public PaymentService(PaymentSettings paymentSettings, IPluginFinder pluginFinder,
     ShoppingCartSettings shoppingCartSettings)
 {
     this._paymentSettings = paymentSettings;
     this._pluginFinder = pluginFinder;
     this._shoppingCartSettings = shoppingCartSettings;
 }
Пример #3
0
 public StoreConnectionStringProvider(IPluginFinder pluginFinder)
 {
     pluginFinder.RegisterCreatePluginsCallBack<IDataStoreRegistration>(registrations =>
         {
             _StoreConnectionNames = registrations.ToDictionary(r => r.Type, r => r.ConnectionDetails);
         });
 }
Пример #4
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;
        }
Пример #5
0
        public FormsManager(IPluginFinder pluginFinder, Func<IViewNavigator> regionNavigatorSupplier, FormExceptionHandler formExceptionHandler)
        {
            _RegionNavigatorSupplier = regionNavigatorSupplier;
            _FormExceptionHandler = formExceptionHandler;

            pluginFinder.RegisterCreatePluginsCallBack<IFormsProvider>(RegisterForms);
        }
        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;
        }
Пример #7
0
        public PluginController(IPluginFinder pluginFinder,
            IOfficialFeedManager officialFeedManager,
            ILocalizationService localizationService,
            IWebHelper webHelper,
            IPermissionService permissionService, 
            ILanguageService languageService,
            ISettingService settingService, 
            IStoreService storeService,
            PaymentSettings paymentSettings,
            ShippingSettings shippingSettings,
            TaxSettings taxSettings, 
            ExternalAuthenticationSettings externalAuthenticationSettings, 
            WidgetSettings widgetSettings)
		{
            this._pluginFinder = pluginFinder;
            this._officialFeedManager = officialFeedManager;
            this._localizationService = localizationService;
            this._webHelper = webHelper;
            this._permissionService = permissionService;
            this._languageService = languageService;
            this._settingService = settingService;
            this._storeService = storeService;
            this._paymentSettings = paymentSettings;
            this._shippingSettings = shippingSettings;
            this._taxSettings = taxSettings;
            this._externalAuthenticationSettings = externalAuthenticationSettings;
            this._widgetSettings = widgetSettings;
		}
Пример #8
0
 public ShippingController(IShippingService shippingService, 
     ShippingSettings shippingSettings,
     ISettingService settingService,
     IAddressService addressService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     ILocalizationService localizationService, 
     IPermissionService permissionService,
      ILocalizedEntityService localizedEntityService,
     ILanguageService languageService,
     IPluginFinder pluginFinder,
     IWebHelper webHelper)
 {
     this._shippingService = shippingService;
     this._shippingSettings = shippingSettings;
     this._settingService = settingService;
     this._addressService = addressService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
     this._localizedEntityService = localizedEntityService;
     this._languageService = languageService;
     this._pluginFinder = pluginFinder;
     this._webHelper = webHelper;
 }
Пример #9
0
 public Scheduler(IPluginFinder plugins, IHeart heart, IWorker worker, IErrorNotifier errorHandler)
 {
     _actions = new List<ScheduledAction>(InstantiateActions(plugins));
     _heart = heart;
     _worker = worker;
     _errorHandler = errorHandler;
 }
Пример #10
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;
 }
Пример #11
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="addressService">Address service</param>
        /// <param name="workContext">Work context</param>
        /// <param name="taxSettings">Tax settings</param>
        /// <param name="pluginFinder">Plugin finder</param>
        /// <param name="geoLookupService">GEO lookup service</param>
        /// <param name="countryService">Country service</param>
        /// <param name="customerSettings">Customer settings</param>
        /// <param name="addressSettings">Address settings</param>
        public TaxService(IAddressService addressService,
            IWorkContext workContext,
            TaxSettings taxSettings,
            IPluginFinder pluginFinder,
            IGeoLookupService geoLookupService,
            ICountryService countryService,
            CustomerSettings customerSettings,
            AddressSettings addressSettings,
            PromoSettings promoSettings,
            //IpromoService promoService,
            IPromoUtilities promoUtilities,
            ITaxServiceExtensions taxServiceExtensions)
            : base(addressService, workContext, taxSettings,
                                                    pluginFinder, geoLookupService, countryService,
                                                    customerSettings, addressSettings)
        {
            this._addressService = addressService;
            this._workContext = workContext;
            this._taxSettings = taxSettings;
            this._pluginFinder = pluginFinder;
            this._geoLookupService = geoLookupService;
            this._countryService = countryService;
            this._customerSettings = customerSettings;
            this._addressSettings = addressSettings;

            this._promoSettings = promoSettings;
            //this._promoService = promoService;
            this._promoUtilities = promoUtilities;
            this._taxServiceExtensions = taxServiceExtensions;
        }
Пример #12
0
        public MenuNavigator(IInfrastructureEventAggregator eventAggregator, IPluginFinder pluginFinder, IFormsManager formsManager)
        {
            _UnattachedMenus = new HashSet<KeyValuePair<string, IMenu>>();
            _FormsManager = formsManager;

            pluginFinder.RegisterCreatePluginsCallBack<IEndPointProvider>(ProcessPlugins);
            eventAggregator.Subscribe<IApplicationInitializedEvent>((args) => ApplicationInitialized());
        }
 public OpenAuthenticationService(IRepository<ExternalAuthenticationRecord> externalAuthenticationRecordRepository,
     IPluginFinder pluginFinder,
     ExternalAuthenticationSettings externalAuthenticationSettings)
 {
     this._externalAuthenticationRecordRepository = externalAuthenticationRecordRepository;
     this._pluginFinder = pluginFinder;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     //this._customerService = customerService;
 }
Пример #14
0
 public Scheduler(IEngine engine, IPluginFinder plugins, IHeart heart, IWorker worker, IWebContext context, IErrorNotifier errorHandler)
 {
     this.engine = engine;
     actions = new List<ScheduledAction>(InstantiateActions(plugins));
     this.heart = heart;
     this.worker = worker;
     this.context = context;
     this.errorHandler = errorHandler;
 }
Пример #15
0
 public PluginDataStoresManager(IPluginFinder plugInFinder, Func<Type, IDataStore> storeSupplier, Func<IModelViewStoresManager> modelViewStoresManagerFactory)
     : base(storeSupplier, modelViewStoresManagerFactory)
 {
     plugInFinder.RegisterCreatePluginsCallBack<IDataStoreRegistration>(
         (instances) =>
             {
                 DataStoreTypes = new List<Type>(instances.Select(plugIn => plugIn.Type));
             });
 }
Пример #16
0
 public PluginController(IPluginFinder pluginFinder,
     ILocalizationService localizationService, IWebHelper webHelper,
     IPermissionService permissionService)
 {
     this._pluginFinder = pluginFinder;
     this._localizationService = localizationService;
     this._webHelper = webHelper;
     this._permissionService = permissionService;
 }
Пример #17
0
 public SmsVerizonController(VerizonSettings verizonSettings,
     ISettingService settingService, IPluginFinder pluginFinder,
     ILocalizationService localizationService)
 {
     this._verizonSettings = verizonSettings;
     this._settingService = settingService;
     this._pluginFinder = pluginFinder;
     this._localizationService = localizationService;
 }
 public SmsClickatellController(ClickatellSettings clickatellSettings,
     ISettingService settingService, IPluginFinder pluginFinder,
     ILocalizationService localizationService)
 {
     this._clickatellSettings = clickatellSettings;
     this._settingService = settingService;
     this._pluginFinder = pluginFinder;
     this._localizationService = localizationService;
 }
Пример #19
0
 public TrackingController(IWorkContext workContext,
     IViewTrackingService viewTrackingService,
     IProductService productService,
     IPluginFinder pluginFinder)
 {
     _workContext = workContext;
     _viewTrackingService = viewTrackingService;
     _productService = productService;
 }
 public SmsTwillioController(TwillioSettings twillioSettings,
     ISettingService settingService, IPluginFinder pluginFinder,
     ILocalizationService localizationService)
 {
     this._twillioSettings = twillioSettings;
     this._settingService = settingService;
     this._pluginFinder = pluginFinder;
     this._localizationService = localizationService;
 }
Пример #21
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="addressService">Address service</param>
 /// <param name="workContext">Work context</param>
 /// <param name="taxSettings">Tax settings</param>
 /// <param name="pluginFinder">Plugin finder</param>
 public TaxService(IAddressService addressService,
     IWorkContext workContext,
     TaxSettings taxSettings,
     IPluginFinder pluginFinder)
 {
     _addressService = addressService;
     _workContext = workContext;
     _taxSettings = taxSettings;
     _pluginFinder = pluginFinder;
 }
 public OpenAuthenticationService(IRepository<ExternalAuthenticationRecord> externalAuthenticationRecordRepository,
     IPluginFinder pluginFinder,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IAccountService accountService)
 {
     this._externalAuthenticationRecordRepository = externalAuthenticationRecordRepository;
     this._pluginFinder = pluginFinder;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._accountService = accountService;
 }
        public WidgetController(IWidgetService widgetService,
            IPermissionService permissionService, ISettingService settingService,
            WidgetSettings widgetSettings, IPluginFinder pluginFinder)
		{
            this._widgetService = widgetService;
            this._permissionService = permissionService;
            this._settingService = settingService;
            this._widgetSettings = widgetSettings;
            this._pluginFinder = pluginFinder;
		}
Пример #24
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="widgetRepository">Widget repository</param>
 /// <param name="pluginFinder">Plugin finder</param>
 /// <param name="eventPublisher">Event published</param>
 public WidgetService(ICacheManager cacheManager,
     IRepository<Widget> widgetRepository, 
     IPluginFinder pluginFinder,
     IEventPublisher eventPublisher)
 {
     this.cacheManager     = cacheManager;
     this.widgetRepository = widgetRepository;
     this.pluginFinder     = pluginFinder;
     this.eventPublisher   = eventPublisher;
 }
Пример #25
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="widgetRepository">Widget repository</param>
 /// <param name="pluginFinder">Plugin finder</param>
 /// <param name="eventPublisher"></param>
 public WidgetService(ICacheManager cacheManager,
     IRepository<Widget> widgetRepository,
     IPluginFinder pluginFinder,
     IEventPublisher eventPublisher)
 {
     _cacheManager = cacheManager;
     _widgetRepository = widgetRepository;
     _pluginFinder = pluginFinder;
     _eventPublisher = eventPublisher;
 }
Пример #26
0
 public PaymentController(IPaymentService paymentService, PaymentSettings paymentSettings,
     ISettingService settingService, IPermissionService permissionService,
     IPluginFinder pluginFinder)
 {
     this._paymentService = paymentService;
     this._paymentSettings = paymentSettings;
     this._settingService = settingService;
     this._permissionService = permissionService;
     this._pluginFinder = pluginFinder;
 }
Пример #27
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,
            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._orderSettings = orderSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._paymentSettings = paymentSettings;
            this._shippingSettings = shippingSettings;
            this._addressSettings = addressSettings;
        }
Пример #28
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="paymentSettings">Payment settings</param>
        /// <param name="pluginFinder">Plugin finder</param>
        /// <param name="shoppingCartSettings">Shopping cart settings</param>
		/// <param name="pluginService">Plugin service</param>
        public PaymentService(PaymentSettings paymentSettings, IPluginFinder pluginFinder,
            ShoppingCartSettings shoppingCartSettings,
			ISettingService settingService,
			ILocalizationService localizationService)
        {
            this._paymentSettings = paymentSettings;
            this._pluginFinder = pluginFinder;
            this._shoppingCartSettings = shoppingCartSettings;
			this._settingService = settingService;
			this._localizationService = localizationService;
        }
Пример #29
0
        public ServiceProvider(IPluginFinder finder)
        {
            Services = new List<IMessagingService>();

            var plugins = finder.GetAllPlugins();

            foreach(var plugin in plugins)
            {
                _AddServiceProvider(plugin);
            }
        }
 public ExternalAuthenticationController(IOpenAuthenticationService openAuthenticationService, 
     ExternalAuthenticationSettings externalAuthenticationSettings,
     ISettingService settingService, IPermissionService permissionService,
     IPluginFinder pluginFinder)
 {
     this._openAuthenticationService = openAuthenticationService;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._settingService = settingService;
     this._permissionService = permissionService;
     this._pluginFinder = pluginFinder;
 }
Пример #31
0
 public PluginController(ExternalAuthenticationSettings externalAuthenticationSettings,
                         ICustomerActivityService customerActivityService,
                         IEventPublisher eventPublisher,
                         IExternalAuthenticationService externalAuthenticationService,
                         ILocalizationService localizationService,
                         IPaymentService paymentService,
                         IPermissionService permissionService,
                         IPluginFinder pluginFinder,
                         IPluginModelFactory pluginModelFactory,
                         ISettingService settingService,
                         IShippingService shippingService,
                         IUploadService uploadService,
                         IWebHelper webHelper,
                         IWidgetService widgetService,
                         PaymentSettings paymentSettings,
                         ShippingSettings shippingSettings,
                         TaxSettings taxSettings,
                         WidgetSettings widgetSettings)
 {
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._customerActivityService        = customerActivityService;
     this._eventPublisher = eventPublisher;
     this._externalAuthenticationService = externalAuthenticationService;
     this._localizationService           = localizationService;
     this._paymentService     = paymentService;
     this._permissionService  = permissionService;
     this._pluginFinder       = pluginFinder;
     this._pluginModelFactory = pluginModelFactory;
     this._settingService     = settingService;
     this._shippingService    = shippingService;
     this._uploadService      = uploadService;
     this._webHelper          = webHelper;
     this._widgetService      = widgetService;
     this._paymentSettings    = paymentSettings;
     this._shippingSettings   = shippingSettings;
     this._taxSettings        = taxSettings;
     this._widgetSettings     = widgetSettings;
 }
Пример #32
0
 public CatalogController(IManufacturerService manufacturerService, ICategoryService categoryService,
                          IProductService productService, ICompareProductsService compareProductsService,
                          IProductAttributeService productAttributeService, ICopyProductService copyProductService, MediaSettings mediaSettings,
                          ICacheManager cacheManager, IPictureService pictureService, IWorkContext workContext, CatalogSettings catalogSettings,
                          IPluginFinder pluginFinder, IStoreContext storeContext, IWebHelper webHelper, ILocalizationService localizationService)
 {
     _manufacturerService     = manufacturerService;
     _mediaSettings           = mediaSettings;
     _categoryService         = categoryService;
     _productService          = productService;
     _compareProductsService  = compareProductsService;
     _productAttributeService = productAttributeService;
     _copyProductService      = copyProductService;
     _mediaSettings           = mediaSettings;
     _cacheManager            = cacheManager;
     _pictureService          = pictureService;
     _workContext             = workContext;
     _pluginFinder            = pluginFinder;
     _storeContext            = storeContext;
     _webHelper           = webHelper;
     _localizationService = localizationService;
     _catalogSettings     = catalogSettings;
 }
Пример #33
0
 public PaymentController(
     ICommonServices services,
     IPaymentService paymentService,
     PaymentSettings paymentSettings,
     IPluginFinder pluginFinder,
     PluginMediator pluginMediator,
     ILanguageService languageService,
     ICustomerService customerService,
     IShippingService shippingService,
     ICountryService countryService,
     ILocalizedEntityService localizedEntityService)
 {
     this._services               = services;
     this._paymentService         = paymentService;
     this._paymentSettings        = paymentSettings;
     this._pluginFinder           = pluginFinder;
     this._pluginMediator         = pluginMediator;
     this._languageService        = languageService;
     this._customerService        = customerService;
     this._shippingService        = shippingService;
     this._countryService         = countryService;
     this._localizedEntityService = localizedEntityService;
 }
Пример #34
0
 public ProductMappingController(IWorkContext workContext,
                                 IStoreContext storeContext,
                                 IStoreService storeService,
                                 ISettingService settingService,
                                 ILocalizationService localizationService,
                                 IRepository <ProductMapping> productMappingRepository,
                                 IRepository <Product> productRepository,
                                 IProductService productService,
                                 ICacheManager cacheManager,
                                 ICurrencyService currencyService,
                                 IPluginFinder pluginFinder)
 {
     this._localizationService      = localizationService;
     this._settingService           = settingService;
     this._storeContext             = storeContext;
     this._storeService             = storeService;
     this._workContext              = workContext;
     this._productMappingRepository = productMappingRepository;
     this._productRepository        = productRepository;
     this._productService           = productService;
     this._cacheManager             = cacheManager;
     this._currencyService          = currencyService;
 }
Пример #35
0
 public LanguageController(
     ILanguageService languageService,
     IStoreMappingService storeMappingService,
     IGenericAttributeService genericAttributeService,
     AdminAreaSettings adminAreaSettings,
     IPluginFinder pluginFinder,
     PluginMediator pluginMediator,
     ICountryService countryService,
     ICommonServices services,
     IDateTimeHelper dateTimeHelper,
     IAsyncState asyncState)
 {
     _languageService         = languageService;
     _storeMappingService     = storeMappingService;
     _genericAttributeService = genericAttributeService;
     _adminAreaSettings       = adminAreaSettings;
     _pluginFinder            = pluginFinder;
     _pluginMediator          = pluginMediator;
     _countryService          = countryService;
     _services       = services;
     _dateTimeHelper = dateTimeHelper;
     _asyncState     = asyncState;
 }
Пример #36
0
 /// <summary>
 /// Ctor
 /// </summary>
 public DiscountService(ICacheManager cacheManager,
                        IRepository <Discount> discountRepository,
                        IRepository <DiscountCoupon> discountCouponRepository,
                        IRepository <DiscountUsageHistory> discountUsageHistoryRepository,
                        ILocalizationService localizationService,
                        IStoreContext storeContext,
                        IPluginFinder pluginFinder,
                        IMediator mediator,
                        ShoppingCartSettings shoppingCartSettings,
                        CatalogSettings catalogSettings
                        )
 {
     _cacheManager                   = cacheManager;
     _discountRepository             = discountRepository;
     _discountCouponRepository       = discountCouponRepository;
     _discountUsageHistoryRepository = discountUsageHistoryRepository;
     _localizationService            = localizationService;
     _storeContext                   = storeContext;
     _pluginFinder                   = pluginFinder;
     _mediator             = mediator;
     _shoppingCartSettings = shoppingCartSettings;
     _catalogSettings      = catalogSettings;
 }
Пример #37
0
        public PaymentController(
            IUnitOfWorkAsync unitOfWorkAsync,
            ISettingService settingService,
            ICategoryService categoryService,
            IListingService listingService,
            IPictureService pictureService,
            IListingPictureService ListingPictureservice,
            IOrderService orderService,
            ICustomFieldService customFieldService,
            ICustomFieldCategoryService customFieldCategoryService,
            ICustomFieldListingService customFieldListingService,
            ISettingDictionaryService settingDictionaryService,
            IListingStatService ListingStatservice,
            DataCacheService dataCacheService,
            SqlDbService sqlDbService,
            IPluginFinder pluginFinder)
        {
            _settingService           = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService            = categoryService;
            _listingService             = listingService;
            _pictureService             = pictureService;
            _ListingPictureservice      = ListingPictureservice;
            _orderService               = orderService;
            _customFieldService         = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;
            _customFieldListingService  = customFieldListingService;
            _ListingStatservice         = ListingStatservice;

            _dataCacheService = dataCacheService;
            _sqlDbService     = sqlDbService;

            _pluginFinder = pluginFinder;

            _unitOfWorkAsync = unitOfWorkAsync;
        }
Пример #38
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="addressService">Address service</param>
 /// <param name="workContext">Work context</param>
 /// <param name="storeContext">Store context</param>
 /// <param name="taxSettings">Tax settings</param>
 /// <param name="pluginFinder">Plugin finder</param>
 /// <param name="geoLookupService">GEO lookup service</param>
 /// <param name="countryService">Country service</param>
 /// <param name="stateProvinceService">State province service</param>
 /// <param name="logger">Logger service</param>
 /// <param name="customerSettings">Customer settings</param>
 /// <param name="shippingSettings">Shipping settings</param>
 /// <param name="addressSettings">Address settings</param>
 public WB_TaxService(IAddressService addressService,
                      IWorkContext workContext,
                      IStoreContext storeContext,
                      TaxSettings taxSettings,
                      IPluginFinder pluginFinder,
                      IGeoLookupService geoLookupService,
                      ICountryService countryService,
                      IStateProvinceService stateProvinceService,
                      ILogger logger,
                      CustomerSettings customerSettings,
                      ShippingSettings shippingSettings,
                      AddressSettings addressSettings) : base(addressService,
                                                              workContext,
                                                              storeContext,
                                                              taxSettings,
                                                              pluginFinder,
                                                              geoLookupService,
                                                              countryService,
                                                              stateProvinceService,
                                                              logger,
                                                              customerSettings,
                                                              shippingSettings,
                                                              addressSettings)
 {
     this._addressService       = addressService;
     this._workContext          = workContext;
     this._storeContext         = storeContext;
     this._taxSettings          = taxSettings;
     this._pluginFinder         = pluginFinder;
     this._geoLookupService     = geoLookupService;
     this._countryService       = countryService;
     this._stateProvinceService = stateProvinceService;
     this._logger           = logger;
     this._customerSettings = customerSettings;
     this._shippingSettings = shippingSettings;
     this._addressSettings  = addressSettings;
 }
Пример #39
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="shippingMethodRepository">Shipping method repository</param>
 /// <param name="logger">Logger</param>
 /// <param name="productService">Product service</param>
 /// <param name="productAttributeParser">Product attribute parser</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>
 public ShippingService(IRepository <ShippingMethod> shippingMethodRepository,
                        ILogger logger,
                        IProductService productService,
                        IProductAttributeParser productAttributeParser,
                        ICheckoutAttributeParser checkoutAttributeParser,
                        IGenericAttributeService genericAttributeService,
                        ILocalizationService localizationService,
                        ShippingSettings shippingSettings,
                        IPluginFinder pluginFinder,
                        IEventPublisher eventPublisher,
                        ShoppingCartSettings shoppingCartSettings)
 {
     this._shippingMethodRepository = shippingMethodRepository;
     this._logger                  = logger;
     this._productService          = productService;
     this._productAttributeParser  = productAttributeParser;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._shippingSettings        = shippingSettings;
     this._pluginFinder            = pluginFinder;
     this._eventPublisher          = eventPublisher;
     this._shoppingCartSettings    = shoppingCartSettings;
 }
Пример #40
0
 public PluginController(IPluginFinder pluginFinder,
                         IPermissionService permissionService,
                         ILanguageService languageService,
                         PaymentSettings paymentSettings,
                         ShippingSettings shippingSettings,
                         TaxSettings taxSettings,
                         ExternalAuthenticationSettings externalAuthenticationSettings,
                         WidgetSettings widgetSettings,
                         IProviderManager providerManager,
                         PluginMediator pluginMediator,
                         ICommonServices services)
 {
     this._pluginFinder      = pluginFinder;
     this._permissionService = permissionService;
     this._languageService   = languageService;
     this._paymentSettings   = paymentSettings;
     this._shippingSettings  = shippingSettings;
     this._taxSettings       = taxSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._widgetSettings  = widgetSettings;
     this._providerManager = providerManager;
     this._pluginMediator  = pluginMediator;
     this._services        = services;
 }
Пример #41
0
 public FeedGoogleShoppingController(IGoogleService googleService,
                                     IProductService productService,
                                     ICurrencyService currencyService,
                                     ILocalizationService localizationService,
                                     IPluginFinder pluginFinder,
                                     ILogger logger,
                                     IWebHelper webHelper,
                                     IStoreService storeService,
                                     GoogleShoppingSettings googleShoppingSettings,
                                     ISettingService settingService,
                                     IPermissionService permissionService)
 {
     this._googleService       = googleService;
     this._productService      = productService;
     this._currencyService     = currencyService;
     this._localizationService = localizationService;
     this._pluginFinder        = pluginFinder;
     this._logger                 = logger;
     this._webHelper              = webHelper;
     this._storeService           = storeService;
     this._googleShoppingSettings = googleShoppingSettings;
     this._settingService         = settingService;
     this._permissionService      = permissionService;
 }
 public FeedZboziController(IZboziService zboziService,
                            IProductService productService,
                            ICurrencyService currencyService,
                            ILocalizationService localizationService,
                            IPluginFinder pluginFinder,
                            ILogger logger,
                            IWebHelper webHelper,
                            IStoreService storeService,
                            ZboziShoppingSettings ZboziSettings,
                            ISettingService settingService,
                            IPermissionService permissionService)
 {
     this._zboziService        = zboziService;
     this._productService      = productService;
     this._currencyService     = currencyService;
     this._localizationService = localizationService;
     this._pluginFinder        = pluginFinder;
     this._logger            = logger;
     this._webHelper         = webHelper;
     this._storeService      = storeService;
     this._zboziSettings     = ZboziSettings;
     this._settingService    = settingService;
     this._permissionService = permissionService;
 }
Пример #43
0
 public InvoiceService(AppDbContext dbContext,
                       IWorkContext workContext,
                       IUsersService usersService,
                       IUserGroupsService userGroupsService,
                       IProductService productService,
                       IProductCheckoutAttributesService productCheckoutAttributesService,
                       ITaxesService taxesService,
                       IPluginFinder pluginFinder,
                       ILicenseManager licenseManager,
                       ISettingService settingService,
                       IEventPublisher eventPublisher)
 {
     _dbContext         = dbContext;
     _workContext       = workContext;
     _usersService      = usersService;
     _userGroupsService = userGroupsService;
     _productService    = productService;
     _productCheckoutAttributesService = productCheckoutAttributesService;
     _taxesService   = taxesService;
     _pluginFinder   = pluginFinder;
     _licenseManager = licenseManager;
     _settingService = settingService;
     _eventPublisher = eventPublisher;
 }
Пример #44
0
 public ShippingController(IShippingService shippingService,
                           ShippingSettings shippingSettings,
                           ISettingService settingService,
                           IAddressService addressService,
                           ICountryService countryService,
                           IStateProvinceService stateProvinceService,
                           ILocalizationService localizationService,
                           IPermissionService permissionService,
                           ILanguageService languageService,
                           IPluginFinder pluginFinder,
                           IWebHelper webHelper)
 {
     this._shippingService      = shippingService;
     this._shippingSettings     = shippingSettings;
     this._settingService       = settingService;
     this._addressService       = addressService;
     this._countryService       = countryService;
     this._stateProvinceService = stateProvinceService;
     this._localizationService  = localizationService;
     this._permissionService    = permissionService;
     this._languageService      = languageService;
     this._pluginFinder         = pluginFinder;
     this._webHelper            = webHelper;
 }
Пример #45
0
 public PaymentMellatBankController(IWorkContext workContext,
                                    IStoreService storeService,
                                    ISettingService settingService,
                                    IPaymentService paymentService,
                                    IOrderService orderService,
                                    IOrderProcessingService orderProcessingService,
                                    ILogger logger,
                                    IPluginFinder pluginFinder,
                                    IWebHelper webHelper,
                                    PaymentSettings paymentSettings,
                                    ILocalizationService localizationService)
 {
     this._workContext            = workContext;
     this._storeService           = storeService;
     this._settingService         = settingService;
     this._paymentService         = paymentService;
     this._orderService           = orderService;
     this._orderProcessingService = orderProcessingService;
     this._logger              = logger;
     this._paymentSettings     = paymentSettings;
     this._localizationService = localizationService;
     this._webHelper           = webHelper;
     this._pluginFinder        = pluginFinder;
 }
 public ExternalAuthWeixinController(ISettingService settingService,
                                     IOAuthProviderWeixinAuthorizer oAuthProviderWeixinAuthorizer,
                                     IOpenAuthenticationService openAuthenticationService,
                                     ExternalAuthenticationSettings externalAuthenticationSettings,
                                     IPermissionService permissionService,
                                     IStoreContext storeContext,
                                     IStoreService storeService,
                                     IWorkContext workContext,
                                     IPluginFinder pluginFinder,
                                     ILogger logger,
                                     ILocalizationService localizationService)
 {
     this._settingService = settingService;
     this._oAuthProviderWeixinAuthorizer  = oAuthProviderWeixinAuthorizer;
     this._openAuthenticationService      = openAuthenticationService;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._permissionService   = permissionService;
     this._storeContext        = storeContext;
     this._storeService        = storeService;
     this._workContext         = workContext;
     this._pluginFinder        = pluginFinder;
     this._localizationService = localizationService;
     this._logger = logger;
 }
Пример #47
0
 public PluginController(IPluginFinder pluginFinder,
                         IOfficialFeedManager officialFeedManager,
                         ILocalizationService localizationService,
                         IWebHelper webHelper,
                         IPermissionService permissionService,
                         ILanguageService languageService,
                         ISettingService settingService,
                         IStoreService storeService,
                         PaymentSettings paymentSettings,
                         ShippingSettings shippingSettings,
                         TaxSettings taxSettings,
                         ExternalAuthenticationSettings externalAuthenticationSettings,
                         WidgetSettings widgetSettings,
                         ICustomerActivityService customerActivityService,
                         ICustomerService customerService,
                         IUploadService uploadService,
                         IEventPublisher eventPublisher)
 {
     this._pluginFinder                   = pluginFinder;
     this._officialFeedManager            = officialFeedManager;
     this._localizationService            = localizationService;
     this._webHelper                      = webHelper;
     this._permissionService              = permissionService;
     this._languageService                = languageService;
     this._settingService                 = settingService;
     this._storeService                   = storeService;
     this._paymentSettings                = paymentSettings;
     this._shippingSettings               = shippingSettings;
     this._taxSettings                    = taxSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._widgetSettings                 = widgetSettings;
     this._customerActivityService        = customerActivityService;
     this._customerService                = customerService;
     this._uploadService                  = uploadService;
     this._eventPublisher                 = eventPublisher;
 }
Пример #48
0
 public CommonModelFactory(AdminAreaSettings adminAreaSettings,
                           IActionContextAccessor actionContextAccessor,
                           IUserService userService,
                           IDateTimeHelper dateTimeHelper,
                           IExternalAuthenticationService externalAuthenticationService,
                           INopFileProvider fileProvider,
                           IHttpContextAccessor httpContextAccessor,
                           ILanguageService languageService,
                           ILocalizationService localizationService,
                           IMaintenanceService maintenanceService,
                           IPluginFinder pluginFinder,
                           ISearchTermService searchTermService,
                           IUrlHelperFactory urlHelperFactory,
                           IUrlRecordService urlRecordService,
                           IWebHelper webHelper,
                           IWidgetService widgetService,
                           IWorkContext workContext)
 {
     this._adminAreaSettings             = adminAreaSettings;
     this._actionContextAccessor         = actionContextAccessor;
     this._userService                   = userService;
     this._dateTimeHelper                = dateTimeHelper;
     this._externalAuthenticationService = externalAuthenticationService;
     this._fileProvider                  = fileProvider;
     this._httpContextAccessor           = httpContextAccessor;
     this._languageService               = languageService;
     this._localizationService           = localizationService;
     this._maintenanceService            = maintenanceService;
     this._pluginFinder                  = pluginFinder;
     this._searchTermService             = searchTermService;
     this._urlHelperFactory              = urlHelperFactory;
     this._urlRecordService              = urlRecordService;
     this._webHelper     = webHelper;
     this._widgetService = widgetService;
     this._workContext   = workContext;
 }
Пример #49
0
        public ManageController(
            IUnitOfWorkAsync unitOfWorkAsync,
            ISettingService settingService,
            ICategoryService categoryService,
            IListingService listingService,
            ICustomFieldService customFieldService,
            ICustomFieldCategoryService customFieldCategoryService,
            IContentPageService contentPageService,
            IOrderService orderService,
            ISettingDictionaryService settingDictionaryService,
            IEmailTemplateService emailTemplateService,
            DataCacheService dataCacheService,
            SqlDbService sqlDbService,
            IPluginFinder pluginFinder,
            AspNetUserService aspNetUserService,
            CountryService countryService)
        {
            _settingService           = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService            = categoryService;
            _listingService             = listingService;
            _customFieldService         = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;

            _orderService = orderService;

            _emailTemplateService = emailTemplateService;
            _contentPageService   = contentPageService;
            _unitOfWorkAsync      = unitOfWorkAsync;
            _dataCacheService     = dataCacheService;
            _sqlDbService         = sqlDbService;
            _pluginFinder         = pluginFinder;
            _aspNetUserService    = aspNetUserService;
            _countryService       = countryService;
        }
Пример #50
0
        public void TestInitialize()
        {
            //plugin initialization
            new Services.Tests.ServiceTest().PluginInitializator();
            var serviceProvider = new Mock <IServiceProvider>();

            serviceProvider.Setup(x => x.GetService(typeof(FixedRateTestTaxProvider))).Returns(new FixedRateTestTaxProvider());
            _serviceProvider = serviceProvider.Object;

            _pluginFinder = new PluginFinder(_serviceProvider);
            _taxSettings  = new TaxSettings();
            _taxSettings.ActiveTaxProviderSystemName = "FixedTaxRateTest";
            _workContext      = null;
            _addressService   = new Mock <IAddressService>().Object;
            _geoLookupService = new Mock <IGeoLookupService>().Object;
            _countryService   = new Mock <ICountryService>().Object;
            _customerSettings = new CustomerSettings();
            _addressSettings  = new AddressSettings();
            _logger           = new NullLogger();

            _taxService = new TaxService(_addressService, _workContext,
                                         _pluginFinder, _geoLookupService, _countryService, _logger,
                                         _taxSettings, _customerSettings, _addressSettings);
        }
Пример #51
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;
 }
Пример #52
0
 public OverriddenPaymentController(ICountryService countryService,
                                    ILocalizationService localizationService,
                                    IPaymentService paymentService,
                                    IPermissionService permissionService,
                                    IPluginFinder pluginFinder,
                                    ISettingService settingService,
                                    IWebHelper webHelper,
                                    PaymentSettings paymentSettings,
                                    WidgetSettings widgetSettings) : base(paymentService,
                                                                          paymentSettings,
                                                                          settingService,
                                                                          permissionService,
                                                                          countryService,
                                                                          pluginFinder,
                                                                          webHelper,
                                                                          localizationService)
 {
     this._paymentService    = paymentService;
     this._permissionService = permissionService;
     this._pluginFinder      = pluginFinder;
     this._settingService    = settingService;
     this._paymentSettings   = paymentSettings;
     this._widgetSettings    = widgetSettings;
 }
Пример #53
0
 public InstallController(IPluginFinder pluginFinder)
 {
     _pluginFinder = pluginFinder;
 }
Пример #54
0
 public SubscriptionEventConsumer(ISubscriptionEventQueueingService service,
                                  IPluginFinder pluginFinder)
 {
     this._service      = service;
     this._pluginFinder = pluginFinder;
 }
Пример #55
0
 public ProvidersModule(ITypeFinder typeFinder, IPluginFinder pluginFinder)
 {
     _typeFinder   = typeFinder;
     _pluginFinder = pluginFinder;
 }
 public OrderPlacedEventConsumer(IPluginFinder pluginFinder)
 {
     this._pluginFinder = pluginFinder;
 }
Пример #57
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="pluginFinder">Plugin finder</param>
 /// <param name="widgetSettings">Widget settings</param>
 public WidgetService(IPluginFinder pluginFinder,
                      WidgetSettings widgetSettings)
 {
     this._pluginFinder   = pluginFinder;
     this._widgetSettings = widgetSettings;
 }
Пример #58
0
 public EventModule(ITypeFinder typeFinder, IPluginFinder pluginFinder)
 {
     _typeFinder   = typeFinder;
     _pluginFinder = pluginFinder;
 }
Пример #59
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="pluginFinder">Plugin finder</param>
 /// <param name="widgetSettings">Widget settings</param>
 public WidgetService(IPluginFinder pluginFinder, ICacheManager cacheManager,
                      WidgetSettings widgetSettings)
 {
     _pluginFinder   = pluginFinder;
     _widgetSettings = widgetSettings;
 }
Пример #60
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="pluginFinder">Plugin finder</param>
 public PromotionFeedService(IPluginFinder pluginFinder)
 {
     this._pluginFinder = pluginFinder;
 }