public RunCommand( ICollectRepository collectRepository, ILogger logger) { this._collectRepository = collectRepository; this._logger = logger; }
public CollectTaskRuntime( ICollectRepository collectDal, ICollectTaskRepository collectTaskDal, ILogger logger, IConfiguration config) { this._config = config; this._collectDal = collectDal; this._collectTaskDal = collectTaskDal; this._logger = logger; this._sh = new Semaphore(int.Parse(this._config["task:parallelTasks"]), int.Parse(this._config["task:parallelTasks"])); this._invokers = new Queue <CollectTaskInvoker>(); this._lock = new ReaderWriterLockSlim(); this._retry = int.Parse(this._config["task:errorRepeat"]); this.State = new CollectTaskState(); }
public AddCommand(ICollectRepository collectRepository) { this._collectRepository = collectRepository; }