Table of Contents

Method CreateKeyValueStoreContext

Namespace
NATS.Net
Assembly
NATS.Client.KeyValueStore.dll

CreateKeyValueStoreContext(INatsClient)

Creates a NATS Key-Value Store context using the specified NATS client.

public static INatsKVContext CreateKeyValueStoreContext(this INatsClient client)

Parameters

client INatsClient

The 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 INatsConnection

The 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 INatsJSContext

The NATS JetStream context instance.

Returns

INatsKVContext

An instance of INatsKVContext which can be used to interact with the Key-Value Store.