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
stringBucket name.
cancellationToken
CancellationTokenA 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
NatsObjConfigObject store configuration.
cancellationToken
CancellationTokenA CancellationToken used to cancel the API call.
Returns
- ValueTask<INatsObjStore>
Object store object.