Пример #1
0
        public bool Inspect <T, V>(DataEvent <T, V> eevent)
            where T : SagaStateMachine <T>, ISaga
        {
            SagaEvent <TSaga> sagaEvent = new SagaEvent <TSaga>(eevent, typeof(V));

            _events.Add(sagaEvent, _currentState);

            return(true);
        }
Пример #2
0
 public bool Equals(SagaEvent <T> other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Event, Event) && Equals(other.MessageType, MessageType));
 }
 public EventInspectorResult(SagaEvent <T> sagaEvent, IEnumerable <State> states)
 {
     SagaEvent = sagaEvent;
     States    = states;
 }