Method CreateKeyValueStoreContext
CreateKeyValueStoreContext(INatsClient)
Creates a NATS Key-Value Store context using the specified NATS client.
public static INatsKVContext CreateKeyValueStoreContext(this INatsClient client)
Parameters
clientINatsClientThe NATS client instance.
Returns
- INatsKVContext
An instance of INatsKVContext which can be used to interact with the Key-Value Store.
CreateKeyValueStoreContext(INatsConnection)
Creates a NATS Key-Value Store context using the specified NATS connection.
public static INatsKVContext CreateKeyValueStoreContext(this INatsConnection connection)
Parameters
connectionINatsConnectionThe NATS connection instance.
Returns
- INatsKVContext
An instance of INatsKVContext which can be used to interact with the Key-Value Store.
CreateKeyValueStoreContext(INatsJSContext)
Creates a NATS Key-Value Store context using the specified NATS JetStream context.
public static INatsKVContext CreateKeyValueStoreContext(this INatsJSContext context)
Parameters
contextINatsJSContextThe NATS JetStream context instance.
Returns
- INatsKVContext
An instance of INatsKVContext which can be used to interact with the Key-Value Store.
CreateKeyValueStoreContext(INatsClient, NatsKVOpts)
Creates a NATS Key-Value Store context using the specified NATS client.
public static INatsKVContext CreateKeyValueStoreContext(this INatsClient client, NatsKVOpts opts)
Parameters
clientINatsClientThe NATS client instance.
optsNatsKVOptsContext options.
Returns
- INatsKVContext
An instance of INatsKVContext which can be used to interact with the Key-Value Store.
CreateKeyValueStoreContext(INatsConnection, NatsKVOpts)
Creates a NATS Key-Value Store context using the specified NATS connection.
public static INatsKVContext CreateKeyValueStoreContext(this INatsConnection connection, NatsKVOpts opts)
Parameters
connectionINatsConnectionThe NATS connection instance.
optsNatsKVOptsContext options.
Returns
- INatsKVContext
An instance of INatsKVContext which can be used to interact with the Key-Value Store.
CreateKeyValueStoreContext(INatsJSContext, NatsKVOpts)
Creates a NATS Key-Value Store context using the specified NATS JetStream context.
public static INatsKVContext CreateKeyValueStoreContext(this INatsJSContext context, NatsKVOpts opts)
Parameters
contextINatsJSContextThe NATS JetStream context instance.
optsNatsKVOptsContext options.
Returns
- INatsKVContext
An instance of INatsKVContext which can be used to interact with the Key-Value Store.