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.