Class NatsSub<T>
public sealed class NatsSub<T> : NatsSubBase, INatsSub<T>, IAsyncDisposable
Type Parameters
T
- Inheritance
-
NatsSub<T>
- Implements
-
INatsSub<T>
- Inherited Members
Constructors
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.