public ReceiveRetroKadrThread(IRsduDBSettings localRsdudbConf, IReceiveRetroThreadVariables receiveRetroThVars, IQueueConsumerAction queueAction, IQueueConsumerSchedule queueSchedule, IQueuePublisherAction queuePublisherAction, ConfigStorage configStorage, RsduSignalSystem svcSignal) { _rsduDbConf = localRsdudbConf; _settings = receiveRetroThVars; _queueAction = queueAction; _queueSchedule = queueSchedule; _queuePublisherAction = queuePublisherAction; _configStorage = configStorage; _svcSignal = svcSignal; _threadQueue = new MultyThreadQueue(configStorage.CountConnection); }
private void ServiceInitialize() { String appPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); _configStorage = new ConfigStorage(appPath); WorkStorage workStorage = new WorkStorage(appPath); _queuePublisherSchedule = workStorage.QueuePublisherSchedule; _queueConsumerSchedule = workStorage.QueueConsumerSchedule; _queueConsumerSchedule.ScheduleStorage = new ScheduleStorage(appPath + "\\" + @"db\config.db"); _queuePublisherAction = workStorage.QueuePublisherAction; _queueConsumerAction = workStorage.QueueConsumerAction; _localRsdudbConn = _configStorage; _receiveRetroThVars = workStorage.ReceiveRetroThreadVariables; _svcSignal = new RsduSignalSystem(); }
public ReceiveRetroKadrThreadEx(IRsduDBSettings localRsdudbConf, IReceiveRetroThreadVariables _receiveRetroTh_vars, IQueuePublisherAction queuePublisherAction, IQueueConsumerAction queueActionConsumerAction, IQueuePublisherSchedule queuePublisherSchedule, IQueueConsumerSchedule queueConsumerSchedule, ConfigStorage configStorage, RsduSignalSystem svcSignal) : base(localRsdudbConf, _receiveRetroTh_vars, queueActionConsumerAction, queueConsumerSchedule, queuePublisherAction, configStorage, svcSignal) { _queuePublisherAction = queuePublisherAction; _queuePublisherSchedule = queuePublisherSchedule; }