Table of Contents

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 BoundedChannelFullMode

Full 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. When not set, the pending messages channel uses the NatsOpts default (BoundedChannelFullMode.DropNewest).