Table of Contents

Constructor NatsJSOrderedConsumer

Namespace
NATS.Client.JetStream
Assembly
NATS.Client.JetStream.dll

NatsJSOrderedConsumer(string, NatsJSContext, NatsJSOrderedConsumerOpts, CancellationToken)

Creates a new NATS JetStream ordered consumer.

public NatsJSOrderedConsumer(string stream, NatsJSContext context, NatsJSOrderedConsumerOpts opts, CancellationToken cancellationToken)

Parameters

stream string

Name of the stream.

context NatsJSContext

NATS JetStream context.

opts NatsJSOrderedConsumerOpts

Consumer options.

cancellationToken CancellationToken

A CancellationToken used to cancel consume and fetch operations.