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
stringObject's name to be linked
target
INatsObjStoreTarget object store
cancellationToken
CancellationTokenA 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