protected override void Initialize(WorkflowExecutionContext context) { base.Initialize(context); _sheetProcessed = new EventWaitHandleEx(false, true, this); _scannerManager.NewSheetReceived += ScannerManager_NewSheetReceived; _scannerManager.SheetProcessed += ScannerManager_SheetProcessed; }
protected override void Initialize(WorkflowExecutionContext context) { base.Initialize(context); _notMoreThen10MinToVotingEndEvent = new EventWaitHandleEx(false, true, this); if (_electionManager.SourceData.ElectionMode == ElectionMode.Real) { _stopMonitorVotingEndEvent = new AutoResetEvent(false); _monitorVotingEndThread = ThreadUtils.StartBackgroundThread(MonitorVotingEndThreadMethod); } }