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
stringLink name
target
stringTarget object's name
cancellationToken
CancellationTokenA 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
stringLink name
target
ObjectMetadataTarget object's metadata
cancellationToken
CancellationTokenA CancellationToken used to cancel the API call.
Returns
- ValueTask<ObjectMetadata>
Metadata of the new link object