public ExportImportController(ICatalogService catalogService, IPushNotificationManager pushNotificationManager, ICommerceService commerceService, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, ICsvCatalogExporter csvExporter, ICsvCatalogImporter csvImporter, ISecurityService securityService, IPermissionScopeService permissionScopeService, IUserNameResolver userNameResolver, ISettingsManager settingsManager) { _securityService = securityService; _permissionScopeService = permissionScopeService; _catalogService = catalogService; _notifier = pushNotificationManager; _commerceService = commerceService; _blobStorageProvider = blobStorageProvider; _userNameResolver = userNameResolver; _settingsManager = settingsManager; _blobUrlResolver = blobUrlResolver; _csvExporter = csvExporter; _csvImporter = csvImporter; }
public CommerceController(ICommerceService commerceService, ICustomerOrderService customerOrderService, IStoreService storeService, ISeoDuplicatesDetector seoDuplicateDetector) { _commerceService = commerceService; _customerOrderService = customerOrderService; _storeService = storeService; _seoDuplicateDetector = seoDuplicateDetector; }
protected MemberServiceBase(Func <IMemberRepository> repositoryFactory, IDynamicPropertyService dynamicPropertyService, ICommerceService commerceService, IEventPublisher eventPublisher) { RepositoryFactory = repositoryFactory; DynamicPropertyService = dynamicPropertyService; EventPublisher = eventPublisher; CommerceService = commerceService; }
public StoreServiceImpl(Func <IStoreRepository> repositoryFactory, ICommerceService commerceService, ISettingsManager settingManager, IShippingService shippingService, IPaymentMethodsService paymentService) { _repositoryFactory = repositoryFactory; _commerceService = commerceService; _settingManager = settingManager; _shippingService = shippingService; _paymentService = paymentService; }
public MonitoredItemsConfigViewModel(ICommerceService commerceService, ICommerceController controller) { this.commerceService = commerceService; this.controller = controller; this.ItemsProvider = new ItemResultsProvider(this.commerceService); this.ItemToAdd = new ItemPriceViewModel(new PriceWatch(), new Item(-1, null), this.controller, this.commerceService); }
public StoreServiceImpl(Func<IStoreRepository> repositoryFactory, ICommerceService commerceService, ISettingsManager settingManager, IShippingService shippingService, IPaymentMethodsService paymentService) { _repositoryFactory = repositoryFactory; _commerceService = commerceService; _settingManager = settingManager; _shippingService = shippingService; _paymentService = paymentService; }
public CatalogServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, ICacheManager <object> cacheManager, AbstractValidator <IHasProperties> hasPropertyValidator) { _commerceService = commerceService; _repositoryFactory = catalogRepositoryFactory; _cacheManager = cacheManager; _hasPropertyValidator = hasPropertyValidator; }
public CatalogSearchServiceImpl(Func<ICatalogRepository> catalogRepositoryFactory, IItemService itemService, ICatalogService catalogService, ICategoryService categoryService, ICommerceService commerceService) { _catalogRepositoryFactory = catalogRepositoryFactory; _itemService = itemService; _catalogService = catalogService; _categoryService = categoryService; _commerceService = commerceService; }
public CatalogSearchServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, IItemService itemService, ICatalogService catalogService, ICategoryService categoryService, ICommerceService commerceService) { _catalogRepositoryFactory = catalogRepositoryFactory; _itemService = itemService; _catalogService = catalogService; _categoryService = categoryService; _commerceService = commerceService; }
/// <summary> /// Default constructor /// </summary> /// <param name="commerceService">The commerce service</param> public RebuildNamesDatabaseViewModel(ICommerceService commerceService) { this.commerceService = commerceService; this.cancelToken = new CancellationTokenSource(); this.Progress = 0; logger.Debug("Starting rebuild of item database"); this.TotalRequests = this.commerceService.ItemsDatabaseBuilder.RebuildItemDatabase(this.HandleIncrementProgress, this.HandleComplete, this.cancelToken.Token); }
public ItemServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService, ICatalogService catalogService, ICategoryService categoryService, AbstractValidator <IHasProperties> hasPropertyValidator) { _catalogService = catalogService; _categoryService = categoryService; _commerceService = commerceService; _outlineService = outlineService; _repositoryFactory = catalogRepositoryFactory; _hasPropertyValidator = hasPropertyValidator; }
protected MemberServiceBase(Func <IMemberRepository> repositoryFactory, IDynamicPropertyService dynamicPropertyService, ICommerceService commerceService, IEventPublisher <MemberChangingEvent> memberChangingEventPublisher, IEventPublisher <MemberChangedEvent> memberChangedEventPublisher) { RepositoryFactory = repositoryFactory; DynamicPropertyService = dynamicPropertyService; MemberChangingEventPublisher = memberChangingEventPublisher; MemberChangedEventPublisher = memberChangedEventPublisher; CommerceService = commerceService; }
public LogisticServiceImpl( IInventoryRepository inventoryRepository, ICommerceService commerceService, ILocationService locationService ) { _inventoryRepository = inventoryRepository; _commerceService = commerceService; _googleService = locationService; }
public RebuildNamesDatabaseViewModel(ICommerceService commerceService) { this.commerceService = commerceService; this.cancelToken = new CancellationTokenSource(); this.Progress = 0; logger.Debug("Starting rebuild of item database"); this.TotalRequests = this.commerceService.ItemsDatabaseBuilder.RebuildItemDatabase( CultureInfo.CurrentUICulture, this.HandleIncrementProgress, this.HandleComplete, this.cancelToken.Token); }
/// <summary> /// Default constructor /// </summary> public PriceNotificationConfigView(ICommerceService commerceService, ICommerceController controller) { logger.Debug("New PriceNotificationConfigView created"); this.controller = controller; this.viewModel = new PriceNotificationConfigViewModel(commerceService, controller); this.DataContext = this.viewModel; InitializeComponent(); // Set the window size and location this.Closing += TPCalculatorView_Closing; }
public StoreServiceImpl(Func <IStoreRepository> repositoryFactory, ICommerceService commerceService, ISettingsManager settingManager, IDynamicPropertyService dynamicPropertyService, IShippingService shippingService, IPaymentMethodsService paymentService, CacheManager cacheManager) { _repositoryFactory = repositoryFactory; _commerceService = commerceService; _settingManager = settingManager; _dynamicPropertyService = dynamicPropertyService; _shippingService = shippingService; _paymentService = paymentService; _cacheManager = cacheManager; }
public CategoryServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService, ICatalogService catalogService, ICacheManager <object> cacheManager, AbstractValidator <IHasProperties> hasPropertyValidator, IEventPublisher eventPublisher) { _repositoryFactory = catalogRepositoryFactory; _cacheManager = cacheManager; _hasPropertyValidator = hasPropertyValidator; _commerceService = commerceService; _outlineService = outlineService; _catalogService = catalogService; _eventPublisher = eventPublisher; }
public StoreServiceImpl(Func<IStoreRepository> repositoryFactory, ICommerceService commerceService, ISettingsManager settingManager, IDynamicPropertyService dynamicPropertyService, IShippingService shippingService, IPaymentMethodsService paymentService, CacheManager cacheManager) { _repositoryFactory = repositoryFactory; _commerceService = commerceService; _settingManager = settingManager; _dynamicPropertyService = dynamicPropertyService; _shippingService = shippingService; _paymentService = paymentService; _cacheManager = cacheManager; }
public CatalogueViewModule(ICatalogueViewService catatalogueService, ICommerceService commerceService, ICatalogueModificationService editService, IAccountService accountService, IOrderService orderService, IEmailSender emailSender, IDeliveryService deliveryService, ICultureService cultureService, IUserService userService) { _catalogueService = catatalogueService; _commerceService = commerceService; _editService = editService; _accountService = accountService; _orderService = orderService; _emailSender = emailSender; _deliveryService = deliveryService; _cultureService = cultureService; _userService = userService; ParsePathInfo(); }
public CategoryService(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService, ICatalogService catalogService, IPlatformMemoryCache memoryCache, AbstractValidator <IHasProperties> hasPropertyValidator, IEventPublisher eventPublisher, IBlobUrlResolver blobUrlResolver) { _repositoryFactory = catalogRepositoryFactory; _memoryCache = memoryCache; _hasPropertyValidator = hasPropertyValidator; _commerceService = commerceService; _outlineService = outlineService; _catalogService = catalogService; _eventPublisher = eventPublisher; _blobUrlResolver = blobUrlResolver; }
public ECommerceModule(ICommerceService commerceService, ICatalogueViewService catatalogueService, ICommerceDao dao, IExtCommonDao commonDao, IBasketRules rules, ICatalogueModificationService editService, IAccountService accountService, IOrderService orderService, IEmailSender emailSender, IDeliveryService deliveryService, ICultureService cultureService, IUserService userService) : base(catatalogueService, commerceService, editService, accountService, orderService, emailSender, deliveryService, cultureService, userService) { _dao = dao; _commonDao = commonDao; _rules = rules; //we now get payment providers from the DB to make it more user friendly //PaymentProviders = CommerceService.GetEnabledPaymentProviders(); }
public CatalogModuleExportImportController(ICatalogService catalogService, IPushNotificationManager pushNotificationManager, ICommerceService commerceService, IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver, CsvCatalogExporter csvExporter, CsvCatalogImporter csvImporter, ISecurityService securityService, IPermissionScopeService permissionScopeService) : base(securityService, permissionScopeService) { _catalogService = catalogService; _notifier = pushNotificationManager; _commerceService = commerceService; _blobStorageProvider = blobStorageProvider; _csvExporter = csvExporter; _csvImporter = csvImporter; _blobUrlResolver = blobUrlResolver; }
public ItemService(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService, ICatalogService catalogService, ICategoryService categoryService, AbstractValidator <IHasProperties> hasPropertyValidator, IEventPublisher eventPublisher, IBlobUrlResolver blobUrlResolver, ISkuGenerator skuGenerator) { _catalogService = catalogService; _categoryService = categoryService; _commerceService = commerceService; _outlineService = outlineService; _repositoryFactory = catalogRepositoryFactory; _hasPropertyValidator = hasPropertyValidator; _eventPublisher = eventPublisher; _blobUrlResolver = blobUrlResolver; _skuGenerator = skuGenerator; }
public NewTaskDialogViewModel(ICommerceService commerceService, IPlayerService playerService, IZoneService zoneService, IPlayerTasksController controller) { this.commerceService = commerceService; this.playerService = playerService; this.zoneService = zoneService; this.controller = controller; this.ItemsProvider = new ItemResultsProvider(this.commerceService); this.Task = new PlayerTask(); this.RefreshLocationCommand = new DelegateCommand(this.RefreshLocation); this.ApplyCommand = new DelegateCommand(this.AddOrUpdateTask); this.RefreshLocation(); }
public CsvCatalogImporter(ICatalogService catalogService, ICategoryService categoryService, IItemService productService, IPushNotificationManager pushNotificationManager, ISkuGenerator skuGenerator, IPricingService pricingService, IInventoryService inventoryService, ICommerceService commerceService, IPropertyService propertyService, ICatalogSearchService searchService) { _catalogService = catalogService; _categoryService = categoryService; _productService = productService; _pushNotificationManager = pushNotificationManager; _skuGenerator = skuGenerator; _pricingService = pricingService; _inventoryService = inventoryService; _commerceService = commerceService; _propertyService = propertyService; _searchService = searchService; }
public CsvCatalogImporter(ICatalogService catalogService, ICategoryService categoryService, IItemService productService, ISkuGenerator skuGenerator, IPricingService pricingService, IInventoryService inventoryService, ICommerceService commerceService, IPropertyService propertyService, ICatalogSearchService searchService, Func <ICatalogRepository> catalogRepositoryFactory) { _catalogService = catalogService; _categoryService = categoryService; _productService = productService; _skuGenerator = skuGenerator; _pricingService = pricingService; _inventoryService = inventoryService; _commerceService = commerceService; _propertyService = propertyService; _searchService = searchService; _catalogRepositoryFactory = catalogRepositoryFactory; }
public MerchandisingModuleProductController(ICatalogSearchService searchService, ICategoryService categoryService, IInventoryService inventoryService, IStoreService storeService, IItemService itemService, IBlobUrlResolver blobUrlResolver, IBrowseFilterService browseFilterService, IItemBrowsingService browseService, IPropertyService propertyService, ICommerceService commerceService, CacheManager cacheManager) { _itemService = itemService; _storeService = storeService; _searchService = searchService; _categoryService = categoryService; _blobUrlResolver = blobUrlResolver; _browseFilterService = browseFilterService; _browseService = browseService; _propertyService = propertyService; _commerceService = commerceService; _inventoryService = inventoryService; _cacheManager = cacheManager; }
public CommerceController(ICommerceService commerceService, CommerceUserData userData) { logger.Debug("Initializing Commerce Controller"); this.commerceService = commerceService; this.UserData = userData; this.ItemPrices = new ObservableCollection<ItemPriceViewModel>(); this.PriceNotifications = new ObservableCollection<PriceNotificationViewModel>(); // Initialize the refresh timer this.refreshTimer = new Timer(this.Refresh); this.RefreshInterval = 30000; // 30 seconds... really only need to do this once a minute, but twice a minute isn't terrible // Initialize the start call count to 0 this.startCallCount = 0; logger.Info("Commerce Controller initialized"); }
public CommerceController(ICommerceService commerceService, CommerceUserData userData) { logger.Debug("Initializing Commerce Controller"); this.commerceService = commerceService; this.UserData = userData; this.ItemPrices = new ObservableCollection <ItemPriceViewModel>(); this.PriceNotifications = new ObservableCollection <PriceNotificationViewModel>(); this.EcoSalvageData = new EctoSalvageHelperViewModel(userData); // Initialize the refresh timer this.refreshTimer = new Timer(this.Refresh); this.RefreshInterval = 30000; // 30 seconds... really only need to do this once a minute, but twice a minute isn't terrible // Initialize the start call count to 0 this.startCallCount = 0; logger.Info("Commerce Controller initialized"); }
public CsvCatalogImportJob(ICatalogService catalogService, ICategoryService categoryService, IItemService productService, INotifier notifier, CacheManager cacheManager, IBlobStorageProvider blobProvider, ISkuGenerator skuGenerator, IPricingService pricingService, IInventoryService inventoryService, ICommerceService commerceService, IPropertyService propertyService, ICatalogSearchService searchService) { _catalogService = catalogService; _categoryService = categoryService; _productService = productService; _notifier = notifier; _cacheManager = cacheManager; _blobStorageProvider = blobProvider; _skuGenerator = skuGenerator; _pricingService = pricingService; _inventoryService = inventoryService; _commerceService = commerceService; _propertyService = propertyService; _searchService = searchService; }
public SyncController(IMemberService memberService, IMemberSearchService meberSearchService, ICustomerOrderService custemerOrderService, IStoreService storeService, ICatalogSearchService searchService, IItemService itemService, IBlobUrlResolver blobUrlResolver, IPricingSearchService priceSearchService, ISyncSettingsService syncSettingsService, ICommerceService commerceService) { _memberSearchService = meberSearchService; _memberService = memberService; _customerOrderService = custemerOrderService; _storeService = storeService; _catalogSearchService = searchService; _itemService = itemService; _blobUrlResolver = blobUrlResolver; _priceSearchService = priceSearchService; _syncSettingsService = syncSettingsService; _commerceService = commerceService; }
public CartsController(ICommerceService commerceService, ILogger logger, HttpContextBase context) { if (commerceService == null) { throw new ArgumentNullException(nameof(commerceService)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (context == null) { throw new ArgumentNullException(nameof(context)); } CommerceService = commerceService; Logger = logger; Context = context; }
/// <summary> /// Default constructor /// </summary> /// <param name="dungeonsService">The dungeons service object</param> /// <param name="userSettings">The dungeons user settings object</param> public CommerceController(ICommerceService commerceService, CommerceSettings userSettings) { logger.Debug("Initializing Commerce Controller"); this.commerceService = commerceService; this.UserSettings = userSettings; this.PriceWatches = new ObservableCollection <PriceWatchViewModel>(); this.PriceNotifications = new ObservableCollection <PriceNotificationViewModel>(); this.InitializePriceWatches(); // Initialize the refresh timer this.refreshTimer = new Timer(this.Refresh); this.RefreshInterval = 30000; // 30 seconds... really only need to do this once a minute, but twice a minute isn't terrible // Initialize the start call count to 0 this.startCallCount = 0; logger.Info("Commerce Controller initialized"); }
public NewTaskDialogViewModel(ICommerceService commerceService, IPlayerService playerService, IZoneService zoneService, IPlayerTasksController controller) { this.commerceService = commerceService; this.playerService = playerService; this.zoneService = zoneService; this.controller = controller; this.ItemsProvider = new ItemResultsProvider(this.commerceService); this.ExistingCategories = new List <string>(); foreach (var task in controller.PlayerTasks) { if (!string.IsNullOrEmpty(task.Category) && !this.ExistingCategories.Contains(task.Category)) { this.ExistingCategories.Add(task.Category); } } this.Task = new PlayerTask(); this.RefreshLocationCommand = new DelegateCommand(this.RefreshLocation); this.ApplyCommand = new DelegateCommand(this.AddOrUpdateTask); this.RefreshLocation(); }
/// <summary> /// Default constructor /// </summary> /// <param name="modelData">The price watch model data</param> /// <param name="controller">Commerce controller</param> public ItemPriceViewModel(PriceWatch priceData, Item itemData, ICommerceController controller, ICommerceService service) { this.Data = priceData; this.ItemData = itemData; this.controller = controller; this.commerceService = service; this.CurrentBuyOrder = new Price(); this.CurrentSellListing = new Price(); this.CurrentProfit = new Price(); this.PastBuyOrders = new ObservableCollection <DataPoint>(); this.PastSellListings = new ObservableCollection <DataPoint>(); this.IsBuyOrderNotificationShown = false; this.IsSellListingNotificationShown = false; this.IsBuyOrderOutOfLimits = false; this.IsSellListingOutOfLimits = false; this.Data.PropertyChanged += Data_PropertyChanged; this.Data.BuyOrderUpperLimit.PropertyChanged += BuyOrderLimit_PropertyChanged; this.Data.BuyOrderLowerLimit.PropertyChanged += BuyOrderLimit_PropertyChanged; this.Data.SellListingUpperLimit.PropertyChanged += SellListingLimit_PropertyChanged; this.Data.SellListingLowerLimit.PropertyChanged += SellListingLimit_PropertyChanged; }
/// <summary> /// Default constructor /// </summary> /// <param name="modelData">The price watch model data</param> /// <param name="controller">Commerce controller</param> public PriceWatchViewModel(PriceWatch priceData, Item itemData, ICommerceController controller, ICommerceService service) { this.Data = priceData; this.ItemData = itemData; this.controller = controller; this.commerceService = service; this.CurrentBuyOrder = new Price(); this.CurrentSellListing = new Price(); this.ItemsProvider = new ItemResultsProvider(this.commerceService); if (this.ItemData != null) { this.SelectedItem = this.commerceService.ItemsDB[this.ItemData.ID]; } this.IsBuyOrderNotificationShown = false; this.IsSellListingNotificationShown = false; this.Data.PropertyChanged += Data_PropertyChanged; this.Data.BuyOrderUpperLimit.PropertyChanged += BuyOrderLimit_PropertyChanged; this.Data.BuyOrderLowerLimit.PropertyChanged += BuyOrderLimit_PropertyChanged; this.Data.SellListingUpperLimit.PropertyChanged += SellListingLimit_PropertyChanged; this.Data.SellListingLowerLimit.PropertyChanged += SellListingLimit_PropertyChanged; }
public BotContactMembersService(Func <ICustomerRepository> repositoryFactory, IDynamicPropertyService dynamicPropertyService, ICommerceService commerceService, ISecurityService securityService, IEventPublisher eventPublisher) : base(repositoryFactory, dynamicPropertyService, commerceService, securityService, eventPublisher) { }
public NewTaskDialogViewModel(ICommerceService commerceService, IPlayerService playerService, IZoneService zoneService, IPlayerTasksController controller) { this.commerceService = commerceService; this.playerService = playerService; this.zoneService = zoneService; this.controller = controller; this.ItemsProvider = new ItemResultsProvider(this.commerceService); this.Task = new PlayerTask(); this.Task.MapID = this.playerService.MapId; this.Task.Location = this.playerService.PlayerPosition; this.RefreshLocationCommand = new DelegateCommand(this.RefreshLocation); this.ApplyCommand = new DelegateCommand(this.AddOrUpdateTask); }
public CoreExportImport(ICommerceService commerceService) { _commerceService = commerceService; }
/// <summary> /// Default constructor /// </summary> /// <param name="modelData">The price watch model data</param> /// <param name="controller">Commerce controller</param> public ItemPriceViewModel(PriceWatch priceData, Item itemData, ICommerceController controller, ICommerceService service) { this.Data = priceData; this.ItemData = itemData; this.controller = controller; this.commerceService = service; this.CurrentBuyOrder = new Price(); this.CurrentSellListing = new Price(); this.CurrentProfit = new Price(); this.PastBuyOrders = new ObservableCollection<DataPoint>(); this.PastSellListings = new ObservableCollection<DataPoint>(); this.IsBuyOrderNotificationShown = false; this.IsSellListingNotificationShown = false; this.IsBuyOrderOutOfLimits = false; this.IsSellListingOutOfLimits = false; this.Data.PropertyChanged += Data_PropertyChanged; this.Data.BuyOrderUpperLimit.PropertyChanged += BuyOrderLimit_PropertyChanged; this.Data.BuyOrderLowerLimit.PropertyChanged += BuyOrderLimit_PropertyChanged; this.Data.SellListingUpperLimit.PropertyChanged += SellListingLimit_PropertyChanged; this.Data.SellListingLowerLimit.PropertyChanged += SellListingLimit_PropertyChanged; }
public CatalogServiceImpl(Func<ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService) { _catalogRepositoryFactory = catalogRepositoryFactory; _commerceService = commerceService; }
public ItemServiceImpl(Func<ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService) { _catalogRepositoryFactory = catalogRepositoryFactory; _commerceService = commerceService; _outlineService = outlineService; }
/// <summary> /// Default constructor /// </summary> /// <param name="commerceService">The commerce service providing access to the commerce API</param> public ItemResultsProvider(ICommerceService commerceService) { this.commerceService = commerceService; }
public ECommerceModule(ICatalogueViewService catatalogueService, ICommerceService commerceService, ICatalogueModificationService editService, IAccountService accountService, IOrderService orderService, IEmailSender emailSender, IDeliveryService deliveryService, ICultureService cultureService, IUserService userService) : base(catatalogueService, commerceService, editService, accountService, orderService, emailSender, deliveryService, cultureService, userService) { }
public InventoryModuleController(IInventoryService inventoryService, ICommerceService commerceService) { _inventoryService = inventoryService; _commerceService = commerceService; }
public CommerceController(ICommerceService commerceService, ICustomerOrderService customerOrderService, IStoreService storeService) { _commerceService = commerceService; _customerOrderService = customerOrderService; _storeService = storeService; }