Exemplo n.º 1
0
 protected override void CorrelateMessages(ICorrelationConfig <MySagaData> config)
 {
     if (_useMessageContext)
     {
         config.CorrelateContext <MyMessage>(context => context.Headers["custom-correlation-id"], d => d.CorrelationId);
     }
     else
     {
         config.CorrelateHeader <MyMessage>("custom-correlation-id", d => d.CorrelationId);
     }
 }
Exemplo n.º 2
0
 protected override void CorrelateMessages(ICorrelationConfig <WhateverSagaData> config)
 {
     config.CorrelateHeader <object>("number", d => d.Number);
 }