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;
 }
Ejemplo n.º 3
0
 public StoreConnectionStringProvider(IPluginFinder pluginFinder)
 {
     pluginFinder.RegisterCreatePluginsCallBack<IDataStoreRegistration>(registrations =>
         {
             _StoreConnectionNames = registrations.ToDictionary(r => r.Type, r => r.ConnectionDetails);
         });
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
		}
Ejemplo n.º 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;
 }
Ejemplo n.º 9
0
 public Scheduler(IPluginFinder plugins, IHeart heart, IWorker worker, IErrorNotifier errorHandler)
 {
     _actions = new List<ScheduledAction>(InstantiateActions(plugins));
     _heart = heart;
     _worker = worker;
     _errorHandler = errorHandler;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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));
             });
 }
Ejemplo n.º 16
0
 public PluginController(IPluginFinder pluginFinder,
     ILocalizationService localizationService, IWebHelper webHelper,
     IPermissionService permissionService)
 {
     this._pluginFinder = pluginFinder;
     this._localizationService = localizationService;
     this._webHelper = webHelper;
     this._permissionService = permissionService;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 23
0
        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;
		}
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 53
0
 public InstallController(IPluginFinder pluginFinder)
 {
     _pluginFinder = pluginFinder;
 }
Ejemplo n.º 54
0
 public SubscriptionEventConsumer(ISubscriptionEventQueueingService service,
                                  IPluginFinder pluginFinder)
 {
     this._service      = service;
     this._pluginFinder = pluginFinder;
 }
Ejemplo n.º 55
0
 public ProvidersModule(ITypeFinder typeFinder, IPluginFinder pluginFinder)
 {
     _typeFinder   = typeFinder;
     _pluginFinder = pluginFinder;
 }
 public OrderPlacedEventConsumer(IPluginFinder pluginFinder)
 {
     this._pluginFinder = pluginFinder;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 58
0
 public EventModule(ITypeFinder typeFinder, IPluginFinder pluginFinder)
 {
     _typeFinder   = typeFinder;
     _pluginFinder = pluginFinder;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 60
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="pluginFinder">Plugin finder</param>
 public PromotionFeedService(IPluginFinder pluginFinder)
 {
     this._pluginFinder = pluginFinder;
 }