public SnapshotsController( ISnapshotService snapshotService, ICollectorService collectorService) { _snapshotService = snapshotService; _collectorService = collectorService; }
/// <summary> /// 采集站选择 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cbSourceSite_SelectedIndexChanged(object sender, EventArgs e) { if (site != null) { resetProgressBar(); } var currentSite = this.cbSourceSite.SelectedItem as CollectorSite; if (site == null || site.Name != currentSite.Name) { service = null; this.Categories = new List <TempCategory>(); this.NeedCollectCategories = new List <TempCategory>(); this.panelCategory.Controls.Clear(); switch (currentSite.Type) { case 1: //天猫超市 service = new TmallChaoShi.TmallChaoShiService(); break; } site = currentSite; } checkLoadCategory(); checkServiceStatus(); }
public CollectorsController(ICollectorService collectorService, IEmployeeService employeeService, IProfessionService professionService, IBranchService branchService) { _collectorService = collectorService; _employeeService = employeeService; _professionService = professionService; _branchService = branchService; }
public void SetCollectorService() { DataUtility.SetDirectory(DataUtility.GetCategoryPath()); DataUtility.SetDirectory(DataUtility.GetSubCategoryPath()); // DataUtility.SetDirectory(DataUtility.GetSubCategoryIconPath()); DataUtility.SetDirectory(DataUtility.GetProductPath()); DataUtility.SetDirectory(DataUtility.GetProductIconPath()); DataUtility.SetDirectory(DataUtility.GetProductModelPath()); if (useCache) { DataUtility.SetDirectory(DataUtility.GetCategoryPath()); DataUtility.SetDirectory(DataUtility.GetSubCategoryPath()); // DataUtility.SetDirectory(DataUtility.GetSubCategoryIconPath()); DataUtility.SetDirectory(DataUtility.GetProductPath()); DataUtility.SetDirectory(DataUtility.GetProductIconPath()); DataUtility.SetDirectory(DataUtility.GetProductModelPath()); } switch (collectorType) { case CollectorServiceType.Local: collector = new LocalDataService(); break; case CollectorServiceType.Magento: collector = new MagentoService(useCache); break; } }
public void FixtureSetUp() { var serviceFactory = new CollectorServiceFactory(); _service = serviceFactory.GetService<ICollectorService>("http://gymjuicecollector.cloudapp.net:5040"); }
public CollectorAppService(ICollectorService collectorService) : base(collectorService) { _collectorService = collectorService; }
public MinersController(IMinerService minerService, ICollectorService collectorService) { _minerService = minerService; _collectorService = collectorService; }
public CollectorController(ICollectorService collectorService) { _collectorService = collectorService; }