Files
hrynco-rabbitmq/Hrynco.RabbitMq/CorrelationContext.cs
T
Anatolii Grynchuk 09c4b8b4d2 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>
2026-05-02 12:42:55 +03:00

14 lines
436 B
C#

namespace Hrynco.RabbitMq;
public record CorrelationContext
{
public required string CorrelationId { get; init; }
/// <summary>
/// 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).
/// </summary>
public string? ReplyTo { get; init; }
}