Method CreateKeyValueStoreContext
CreateKeyValueStoreContext(INatsClient)
Creates a NATS Key-Value Store context using the specified NATS client.
public static INatsKVContext CreateKeyValueStoreContext(this INatsClient client)
Parameters
client
INatsClientThe 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
connection
INatsConnectionThe 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
context
INatsJSContextThe 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
client
INatsClientThe NATS client instance.
opts
NatsKVOptsContext 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
connection
INatsConnectionThe NATS connection instance.
opts
NatsKVOptsContext 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
context
INatsJSContextThe NATS JetStream context instance.
opts
NatsKVOptsContext options.
Returns
- INatsKVContext
An instance of INatsKVContext which can be used to interact with the Key-Value Store.