Class NatsOpts
Immutable options for NatsConnection, you can configure via with operator.
public sealed record NatsOpts : IEquatable<NatsOpts>- Inheritance
- 
      
      NatsOpts
- Implements
- Inherited Members
- Extension Methods
Fields
Properties
- IgnoreAuthErrorAbort
- Opts-out of the default connect behavior of aborting subsequent reconnect attempts if server returns the same auth error twice. 
- MaxReconnectRetry
- Maximum number of reconnect attempts. (default: -1, unlimited) 
- 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) 
- RequestReplyMode
- Determines the mechanism for handling request-reply interactions in NATS. 
- RetryOnInitialConnect
- Determines whether the client should retry connecting to the server during the initial connection attempt if the connection fails. (default: - false)
- SocketConnectionFactory
- Factory for creating socket connections to the NATS server. When set, this factory will be used instead of the default connection implementation. For the library to handle TLS upgrade automatically, implement the INatsTlsUpgradeableSocketConnection interface. 
- 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).
- Url
- NATS server URL to connect to. (default: nats://localhost:4222)