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); }
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; }