private void SignalReceived(WaitForSignalsEvent sender, string args)
 {
     if (!sender.IsExpectingSignals)
     {
         _timerWait = null;
     }
 }
        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 });
        }
Esempio n. 3
0
 private static bool IsFor(this WaitForSignalsEvent @event, WorkflowItem item, long triggerEventId)
 {
     return(@event.TriggerEventId == triggerEventId && @event.IsFor(item));
 }
Esempio n. 4
0
 private static bool IsFor(this WaitForSignalsEvent @event, WorkflowItem item, string signalName)
 {
     return(@event.IsWaitingForSignal(signalName) && @event.IsFor(item));
 }
Esempio n. 5
0
 public WaitingForSignalState(WaitForSignalsEvent waitForSignalsEvent)
 {
     _waitForSignalsEvent = waitForSignalsEvent;
     _data = waitForSignalsEvent._data;
 }
 private void SignalTimedout(object sender, WaitForSignalsEvent e)
 {
     _timerWait = null;
 }
Esempio n. 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));
 }