Table of Contents

Constructor NatsSubBase

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

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 INatsConnection

NATS connection.

manager INatsSubscriptionManager

Subscription manager.

subject string

Subject to subscribe to.

queueGroup string

Queue group name.

opts NatsSubOpts

Subscription options.

cancellationToken CancellationToken

Cancellation token.