Skip to content

Commit

Permalink
This is to have parity with other clients (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick authored Jan 8, 2024
1 parent 1f7010c commit a3f4df6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/NATS.Client.JetStream/NatsJSMsg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public interface INatsJSMsg<out T>
/// </summary>
NatsJSMsgMetadata? Metadata { get; }

/// <summary>
/// The reply subject that subscribers can use to send a response back to the publisher/requester.
/// </summary>
public string? ReplyTo { get; }

/// <summary>
/// Reply with an empty message.
/// </summary>
Expand Down Expand Up @@ -176,7 +181,10 @@ public NatsJSMsg(NatsMsg<T> msg, NatsJSContext context)
/// </summary>
public NatsJSMsgMetadata? Metadata => _replyToDateTimeAndSeq.Value;

private string? ReplyTo => _msg.ReplyTo;
/// <summary>
/// The reply subject that subscribers can use to send a response back to the publisher/requester.
/// </summary>
public string? ReplyTo => _msg.ReplyTo;

/// <summary>
/// Reply with an empty message.
Expand Down

0 comments on commit a3f4df6

Please sign in to comment.