Table of Contents

Method UpdateMetaAsync

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

UpdateMetaAsync(string, ObjectMetadata, CancellationToken)

Update object metadata

public ValueTask<ObjectMetadata> UpdateMetaAsync(string key, ObjectMetadata meta, CancellationToken cancellationToken = default)

Parameters

key string

Object key

meta ObjectMetadata

Object metadata

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

ValueTask<ObjectMetadata>

Object metadata

Exceptions

NatsObjException

There is already an object with the same name