Пример #1
0
 public SampleSagaMessageProcessor(IStorageBus storageBus)
 {
     _storageBus = storageBus;
     //Map the messages to the Saga
     MessageMapper.MapStartMessage <SampleSagaStartMessage>(m => m.Id);
     MessageMapper.MapMessage <SampleSagaMessage>(m => m.Id);
 }
Пример #2
0
 public RedisSagaProcessor(IRedisBus bus)
 {
     _bus = bus;
     //Map messages
     MessageMapper.MapStartMessage <SampleRedisSagaStarterCommand>(m => m.SagaId);
     MessageMapper.MapMessage <SampleRedisSagaCommand>(m => m.SagaId);
 }
Пример #3
0
 public SagaDuplicateWithDuplicate(ICountable countable, bool throwOnProcess = false)
 {
     _countable      = countable;
     _throwOnProcess = throwOnProcess;
     MessageMapper.MapStartMessage <SagaStartMessage>(m => "b");
 }
Пример #4
0
 public Saga()
 {
     MessageMapper.MapStartMessage <SagaStartMessage>(m => "b");
 }
Пример #5
0
 public TestSaga()
 {
     MessageMapper.MapStartMessage <TestSagaStartMessage>(m => m.MessageId);
 }