Method CreateObjectStoreContext
CreateObjectStoreContext(INatsClient)
Creates a NATS Object Store context for the given NATS client.
public static INatsObjContext CreateObjectStoreContext(this INatsClient client)
Parameters
client
INatsClientThe NATS client instance.
Returns
- INatsObjContext
An instance of INatsObjContext used for interacting with the NATS Object Store.
CreateObjectStoreContext(INatsConnection)
Creates a NATS Object Store context for the given NATS connection.
public static INatsObjContext CreateObjectStoreContext(this INatsConnection connection)
Parameters
connection
INatsConnectionThe NATS connection instance.
Returns
- INatsObjContext
An instance of INatsObjContext used for interacting with the NATS Object Store.
CreateObjectStoreContext(INatsJSContext)
Creates a NATS Object Store context for the given NATS JetStream context.
public static INatsObjContext CreateObjectStoreContext(this INatsJSContext context)
Parameters
context
INatsJSContextThe NATS JetStream context instance.
Returns
- INatsObjContext
An instance of INatsObjContext used for interacting with the NATS Object Store.