Constructor NatsSubBase
NatsSubBase(INatsConnection, INatsSubscriptionManager, string, string?, NatsSubOpts?, CancellationToken)
Creates a new instance of NatsSubBase.
protected NatsSubBase(INatsConnection connection, INatsSubscriptionManager manager, string subject, string? queueGroup, NatsSubOpts? opts, CancellationToken cancellationToken = default)
Parameters
connection
INatsConnectionNATS connection.
manager
INatsSubscriptionManagerSubscription manager.
subject
stringSubject to subscribe to.
queueGroup
stringQueue group name.
opts
NatsSubOptsSubscription options.
cancellationToken
CancellationTokenCancellation token.