Table of Contents

Method AddLinkAsync

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

AddLinkAsync(string, string, CancellationToken)

Add a link to another object

public ValueTask<ObjectMetadata> AddLinkAsync(string link, string target, CancellationToken cancellationToken = default)

Parameters

link string

Link name

target string

Target object's name

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

ValueTask<ObjectMetadata>

Metadata of the new link object

AddLinkAsync(string, ObjectMetadata, CancellationToken)

Add a link to another object

public ValueTask<ObjectMetadata> AddLinkAsync(string link, ObjectMetadata target, CancellationToken cancellationToken = default)

Parameters

link string

Link name

target ObjectMetadata

Target object's metadata

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

ValueTask<ObjectMetadata>

Metadata of the new link object