From 146634f755c7b431c91a5590181e94c2563801b1 Mon Sep 17 00:00:00 2001 From: Yeong Jong Lim Date: Thu, 24 Apr 2025 23:39:55 +0800 Subject: [PATCH] Obsolete ReplyAsync method --- src/NATS.Client.JetStream/NatsJSMsg.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NATS.Client.JetStream/NatsJSMsg.cs b/src/NATS.Client.JetStream/NatsJSMsg.cs index cc6830054..4eb8e6a05 100644 --- a/src/NATS.Client.JetStream/NatsJSMsg.cs +++ b/src/NATS.Client.JetStream/NatsJSMsg.cs @@ -208,6 +208,7 @@ public NatsJSMsg(NatsMsg msg, INatsJSContext context) /// A for publishing options. /// A used to cancel the command. /// A that represents the asynchronous send operation. + [Obsolete("ReplyAsync is not valid when using JetStream. The reply message will never reach the Requestor as NATS will reply to all JetStream publish by default.")] public ValueTask ReplyAsync(NatsHeaders? headers = default, string? replyTo = default, NatsPubOpts? opts = default, CancellationToken cancellationToken = default) => _msg.ReplyAsync(headers, replyTo, opts, cancellationToken);