protected override void ConfigureInMemoryReceiveEndpoint(
     IInMemoryReceiveEndpointConfigurator configurator)
 {
     _Machine    = new ProcessStateMachine();
     _Repository = new InMemorySagaRepository <Process>();
     configurator.StateMachineSaga(_Machine, _Repository);
 }
Exemplo n.º 2
0
 protected void RemoveDelegates()
 {
     // Remove whichever current state
     if (ProcessStateMachine != null)
     {
         foreach (StateTransitionDelegate eventDelegate in ProcessStateMachine.GetInvocationList())
         {
             ProcessStateMachine -= eventDelegate;
         }
     }
 }
 public void ConfigureMessages()
 {
     // Message correlation and such happens in here
     ProcessStateMachine.ConfigureMessages();
 }