Method UnpinConsumerAsync
UnpinConsumerAsync(string, string, string, CancellationToken)
Unpin a consumer from the currently pinned client.
public ValueTask UnpinConsumerAsync(string stream, string consumer, string group, CancellationToken cancellationToken = default)
Parameters
streamstringStream name where consumer is associated to.
consumerstringConsumer name to be unpinned.
groupstringThe priority group name to unpin.
cancellationTokenCancellationTokenA CancellationToken used to cancel the API call.
Returns
- ValueTask
A task representing the asynchronous operation.
Exceptions
- NatsJSException
There was an issue retrieving the response.
- NatsJSApiException
Server responded with an error.
- ArgumentException
The
streamname is invalid.- ArgumentNullException
The
streamname isnull.