private void HandleFirstCorrelation(CorrelationLegacyTestMessage1 message) { Console.WriteLine("Received legacy correlation message 1. Correlation ID " + message.CorrelationId); _publisher.SendAsync(new CorrelationLegacyTestMessage2 { CorrelationId = message.CorrelationId }); }
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); }