Method ResumeConsumerAsync
ResumeConsumerAsync(string, string, CancellationToken)
Resume a (paused) consumer.
ValueTask<bool> ResumeConsumerAsync(string stream, string consumer, CancellationToken cancellationToken = default)
Parameters
streamstringStream name where consumer is associated to.
consumerstringConsumer name to be resumed.
cancellationTokenCancellationTokenA CancellationToken used to cancel the API call.
Returns
Remarks
This feature is only available on NATS server v2.11 and later.
Exceptions
- NatsJSException
There was an issue retrieving the response.
- NatsJSApiException
Server responded with an error.
- ArgumentException
The
streamname is invalid.- ArgumentNullException
The
streamname isnull.