Пример #1
0
 private void SignalReceived(WaitForSignalsEvent sender, string args)
 {
     if (!sender.IsExpectingSignals)
     {
         _timerWait = null;
     }
 }
Пример #2
0
        internal override IEnumerable <WaitForSignalsEvent> WaitForSignalsEvent()
        {
            var historyEvent = SimulatedHistoryEvent();
            var @event       = new WaitForSignalsEvent(historyEvent, Enumerable.Empty <HistoryEvent>());

            @event.SignalReceived += SignalReceived;
            @event.SignalTimedout += SignalTimedout;
            return(new[] { @event });
        }
Пример #3
0
 private static bool IsFor(this WaitForSignalsEvent @event, WorkflowItem item, long triggerEventId)
 {
     return(@event.TriggerEventId == triggerEventId && @event.IsFor(item));
 }
Пример #4
0
 private static bool IsFor(this WaitForSignalsEvent @event, WorkflowItem item, string signalName)
 {
     return(@event.IsWaitingForSignal(signalName) && @event.IsFor(item));
 }
Пример #5
0
 public WaitingForSignalState(WaitForSignalsEvent waitForSignalsEvent)
 {
     _waitForSignalsEvent = waitForSignalsEvent;
     _data = waitForSignalsEvent._data;
 }
Пример #6
0
 private void SignalTimedout(object sender, WaitForSignalsEvent e)
 {
     _timerWait = null;
 }
Пример #7
0
 internal bool IsFor(WaitForSignalsEvent waitEvent)
 {
     return(TriggerEventId == waitEvent.TriggerEventId &&
            HasSameScheduleId(waitEvent));
 }
 public bool IsFor(WaitForSignalsEvent @event)
 {
     return(_details.TriggerEventId == @event.TriggerEventId &&
            HasSameScheduleId(@event));
 }