Table of Contents

Class NatsSub<T>

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll
public sealed class NatsSub<T> : NatsSubBase, INatsSub<T>, IAsyncDisposable

Type Parameters

T
Inheritance
NatsSub<T>
Implements
Inherited Members

Properties

Msgs

Access incoming messages for your subscription.

Methods

ReceiveInternalAsync(string, string?, ReadOnlySequence<byte>?, ReadOnlySequence<byte>)

Invoked when a MSG or HMSG arrives for the subscription. This method is invoked while reading from the socket. Buffers belong to the socket reader and you should process them as quickly as possible or create a copy before you return from this method.

TryComplete()

Invoked to signal end of the subscription.