Exemplo n.º 1
0
        public bool Inspect <T, V>(DataEvent <T, V> eevent)
            where T : SagaStateMachine <T>, ISaga
        {
            var sagaEvent = new SagaEvent <TSaga>(eevent, typeof(V));

            _events.Add(sagaEvent, _currentState);

            return(true);
        }
Exemplo n.º 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));
 }
Exemplo n.º 3
0
 public EventInspectorResult(SagaEvent <T> sagaEvent, IEnumerable <State> states)
 {
     SagaEvent = sagaEvent;
     States    = states;
 }