Method WithSubPendingChannelFullMode
- Namespace
- NATS.Extensions.Microsoft.DependencyInjection
- Assembly
- NATS.Extensions.Microsoft.DependencyInjection.dll
WithSubPendingChannelFullMode(BoundedChannelFullMode)
Override the default BoundedChannelFullMode for the pending messages channel.
public NatsBuilder WithSubPendingChannelFullMode(BoundedChannelFullMode pending)
Parameters
pending
BoundedChannelFullModeFull mode for the subscription channel.
Returns
- NatsBuilder
Builder to allow method chaining.
Remarks
This will be applied to options overriding values set for SubPendingChannelFullMode
in options.
By default, the pending messages channel will wait for space to be available when full.
Note that this is not the same as NatsOpts
default SubPendingChannelFullMode
which is DropNewest
.