Table of Contents

Method CreateJetStreamContext

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

CreateJetStreamContext(INatsClient)

Creates a JetStream context using the provided NATS client.

public static INatsJSContext CreateJetStreamContext(this INatsClient client)

Parameters

client INatsClient

The NATS client used to create the JetStream context.

Returns

INatsJSContext

Returns an instance of INatsJSContext for interacting with JetStream.

CreateJetStreamContext(INatsConnection)

Creates a JetStream context using the provided NATS connection.

public static INatsJSContext CreateJetStreamContext(this INatsConnection connection)

Parameters

connection INatsConnection

The NATS connection used to create the JetStream context.

Returns

INatsJSContext

Returns an instance of INatsJSContext for interacting with JetStream.