Table of Contents

Method GetInfoAsync

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

GetInfoAsync(string, bool, CancellationToken)

Get object metadata by key.

public ValueTask<ObjectMetadata> GetInfoAsync(string key, bool showDeleted = false, CancellationToken cancellationToken = default)

Parameters

key string

Object key.

showDeleted bool

Also retrieve deleted objects.

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

ValueTask<ObjectMetadata>

Object metadata.

Exceptions

NatsObjException

Object was not found.