public SnapshotsController(
     ISnapshotService snapshotService,
     ICollectorService collectorService)
 {
     _snapshotService  = snapshotService;
     _collectorService = collectorService;
 }
Exemple #2
0
        /// <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();
        }
Exemple #3
0
 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;
            }
        }
Exemple #5
0
 public void FixtureSetUp()
 {
     var serviceFactory = new CollectorServiceFactory();
     _service = serviceFactory.GetService<ICollectorService>("http://gymjuicecollector.cloudapp.net:5040");
 }
Exemple #6
0
 public CollectorAppService(ICollectorService collectorService)
     : base(collectorService)
 {
     _collectorService = collectorService;
 }
 public MinersController(IMinerService minerService, ICollectorService collectorService)
 {
     _minerService     = minerService;
     _collectorService = collectorService;
 }
 public CollectorController(ICollectorService collectorService)
 {
     _collectorService = collectorService;
 }