Table of Contents

Class NatsOpts

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

Immutable options for NatsConnection, you can configure via with operator.

public sealed record NatsOpts : IEquatable<NatsOpts>
Inheritance
NatsOpts
Implements
Inherited Members

Fields

Default

Properties

AuthOpts
CommandTimeout
ConnectTimeout
Echo
HeaderEncoding
Headers
IgnoreAuthErrorAbort

Opts-out of the default connect behavior of aborting subsequent reconnect attempts if server returns the same auth error twice.

InboxPrefix
LoggerFactory
MaxPingOut
MaxReconnectRetry

Maximum number of reconnect attempts. (default: -1, unlimited)

Name
NoRandomize
ObjectPoolSize
PingInterval
ReaderBufferSize
ReconnectJitter

Random amount of time to wait between reconnect attempts. (default: 100ms)

ReconnectWaitMax

Backoff delay limit for reconnect attempts. (default: 5 seconds)

ReconnectWaitMin

Minimum amount of time to wait between reconnect attempts. (default: 2s)

RequestTimeout
SerializerRegistry
SubPendingChannelCapacity

This value will be used for subscriptions internal bounded message channel capacity. The default subscriber pending message limit is 1024.

SubPendingChannelFullMode

This value will be used for subscriptions internal bounded message channel FullMode. The default is to drop newest message when full (BoundedChannelFullMode.DropNewest).

SubjectEncoding
SubscriptionCleanUpInterval
TlsOpts
Url
UseThreadPoolCallback
Verbose
WaitUntilSent
WriterBufferSize