Table of Contents

Method GetBytesAsync

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

GetBytesAsync(string, CancellationToken)

Get object by key.

ValueTask<byte[]> GetBytesAsync(string key, CancellationToken cancellationToken = default)

Parameters

key string

Object key.

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

ValueTask<byte[]>

Object value as a byte array.