Table of Contents

Method ReplyAsync

Namespace
NATS.Client.JetStream
Assembly
NATS.Client.JetStream.dll

ReplyAsync(NatsHeaders?, string?, NatsPubOpts?, CancellationToken)

Reply with an empty message.

public ValueTask ReplyAsync(NatsHeaders? headers = null, string? replyTo = null, NatsPubOpts? opts = null, CancellationToken cancellationToken = default)

Parameters

headers NatsHeaders

Optional message headers.

replyTo string

Optional reply-to subject.

opts NatsPubOpts

A NatsPubOpts for publishing options.

cancellationToken CancellationToken

A CancellationToken used to cancel the command.

Returns

ValueTask

A ValueTask that represents the asynchronous send operation.