Constructor NatsJSContext
NatsJSContext(INatsConnection)
Creates a NATS JetStream context used to manage and access streams and consumers.
public NatsJSContext(INatsConnection connection)
Parameters
connection
INatsConnectionA NATS server connection NatsConnection to access the JetStream APIs, publishers and consumers.
NatsJSContext(INatsConnection, NatsJSOpts)
Creates a NATS JetStream context used to manage and access streams and consumers.
public NatsJSContext(INatsConnection connection, NatsJSOpts opts)
Parameters
connection
INatsConnectionA NATS server connection NatsConnection to access the JetStream APIs, publishers and consumers.
opts
NatsJSOptsContext wide NatsJSOpts JetStream options.