Esempio n. 1
0
 public static ISagaAction FindActionByEventType(
     this ISagaActions actions, Type eventType)
 {
     return(actions.
            FirstOrDefault(action => action.Event == eventType));
 }
Esempio n. 2
0
 public static ISagaAction FindActionByStateAndEventType(
     this ISagaActions actions, string state, Type eventType)
 {
     return(actions.
            FirstOrDefault(action => action.State == state && action.Event == eventType));
 }
Esempio n. 3
0
 public static ISagaAction FindActionByStep(
     this ISagaActions actions, string step)
 {
     return(actions.
            FirstOrDefault(action => action.GetStep(step) != null));
 }