Method CreateJetStreamContext
CreateJetStreamContext(INatsClient)
Creates a JetStream context using the provided NATS client.
public static INatsJSContext CreateJetStreamContext(this INatsClient client)
Parameters
client
INatsClientThe 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
INatsConnectionThe NATS connection used to create the JetStream context.
Returns
- INatsJSContext
Returns an instance of INatsJSContext for interacting with JetStream.