Table of Contents

Method AddBucketLinkAsync

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

AddBucketLinkAsync(string, INatsObjStore, CancellationToken)

Add a link to another object store

ValueTask<ObjectMetadata> AddBucketLinkAsync(string link, INatsObjStore target, CancellationToken cancellationToken = default)

Parameters

link string

Object's name to be linked

target INatsObjStore

Target object store

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

ValueTask<ObjectMetadata>

Metadata of the new link object

Exceptions

NatsObjException

Object with the same name already exists