private void HandleFirstCorrelation(CorrelationTestMessage1 message) { _logger.LogInformation("Received correlation message 1. Correlatio ID {correlation}", message.CorrelationId); _publisher.SendAsync(new CorrelationTestMessage2 { CorrelationId = message.CorrelationId }); }
private void ExecuteTask(object state) { var correlationId = Guid.NewGuid(); var correlationKey = $"COR-{correlationId}"; _logger.LogInformation("Starting correlation chain with {correlation}", correlationKey); var testMessage = new CorrelationTestMessage1 { CorrelationId = correlationKey }; _publisher.SendAsync(testMessage); }