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