Method DeleteConsumerAsync
DeleteConsumerAsync(string, string, CancellationToken)
Delete a consumer from a stream.
public ValueTask<bool> DeleteConsumerAsync(string stream, string consumer, CancellationToken cancellationToken = default)
Parameters
stream
stringStream name where consumer is associated to.
consumer
stringConsumer name to be deleted.
cancellationToken
CancellationTokenA CancellationToken used to cancel the API call.
Returns
Exceptions
- NatsJSException
There was an issue retrieving the response.
- NatsJSApiException
Server responded with an error.
- ArgumentException
The
stream
name is invalid.- ArgumentNullException
The
stream
name isnull
.