예제 #1
0
 private void HandleFirstCorrelation(CorrelationLegacyTestMessage1 message)
 {
     Console.WriteLine("Received legacy correlation message 1. Correlation ID " + message.CorrelationId);
     _publisher.SendAsync(new CorrelationLegacyTestMessage2
     {
         CorrelationId = message.CorrelationId
     });
 }
예제 #2
0
        private void Execute(object state)
        {
            var correlationId  = Guid.NewGuid();
            var correlationKey = $"COR-{correlationId}";

            Console.WriteLine("Starting legacy correlation chain with " + correlationKey);
            var testMessage = new CorrelationLegacyTestMessage1
            {
                CorrelationId = correlationKey
            };

            _publisher.SendAsync(testMessage);
        }