From 09c4b8b4d2a6054883168241c921c781f8c8f616 Mon Sep 17 00:00:00 2001 From: Anatolii Grynchuk Date: Sat, 2 May 2026 12:42:55 +0300 Subject: [PATCH] feat: add ReplyTo to CorrelationContext - Allows message publishers to specify a reply queue - Consumer publishes result to ReplyTo queue if set - If ReplyTo is null, behavior is fire-and-forget Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Hrynco.RabbitMq/CorrelationContext.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Hrynco.RabbitMq/CorrelationContext.cs b/Hrynco.RabbitMq/CorrelationContext.cs index 4745829..2ee8341 100644 --- a/Hrynco.RabbitMq/CorrelationContext.cs +++ b/Hrynco.RabbitMq/CorrelationContext.cs @@ -3,4 +3,11 @@ namespace Hrynco.RabbitMq; public record CorrelationContext { public required string CorrelationId { get; init; } + + /// + /// Optional queue name the sender wants the result published to. + /// If set, the consumer should publish a result message to this queue after processing. + /// If null, the sender does not require a reply (fire-and-forget). + /// + public string? ReplyTo { get; init; } }