Table of Contents

Method CreateObjectStoreAsync

Namespace
NATS.Client.ObjectStore
Assembly
NATS.Client.ObjectStore.dll

CreateObjectStoreAsync(string, CancellationToken)

Create a new object store.

public ValueTask<INatsObjStore> CreateObjectStoreAsync(string bucket, CancellationToken cancellationToken = default)

Parameters

bucket string

Bucket name.

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

ValueTask<INatsObjStore>

Object store object.

CreateObjectStoreAsync(NatsObjConfig, CancellationToken)

Create a new object store.

public ValueTask<INatsObjStore> CreateObjectStoreAsync(NatsObjConfig config, CancellationToken cancellationToken = default)

Parameters

config NatsObjConfig

Object store configuration.

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

ValueTask<INatsObjStore>

Object store object.