Table of Contents

Struct NatsSvcMsg<T>

Namespace
NATS.Client.Services
Assembly
NATS.Client.Services.dll

NATS service exception.

public readonly struct NatsSvcMsg<T>

Type Parameters

T
Inherited Members

Constructors

NatsSvcMsg(NatsMsg<T>, NatsSvcEndpointBase?, Exception?)

Creates a new instance of NatsSvcMsg<T>.

Properties

Data

Message data.

Exception

Optional exception if there were any errors.

Headers

Pass additional information using name-value pairs.

ReplyTo

Message reply-to subject.

Subject

Message subject.

Methods

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

Send a reply with an empty message body.

ReplyAsync<TReply>(TReply, NatsHeaders?, string?, INatsSerialize<TReply>?, NatsPubOpts?, CancellationToken)

Send a reply with a message body.

ReplyErrorAsync(int, string, NatsHeaders?, string?, NatsPubOpts?, CancellationToken)

Reply with an error.

ReplyErrorAsync<TReply>(int, string, TReply, NatsHeaders?, string?, INatsSerialize<TReply>?, NatsPubOpts?, CancellationToken)

Reply with an error and additional data as error body.