Class ConnectionConfig
The configuration of a connection.
public sealed class ConnectionConfig
- Inheritance
-
ConnectionConfig
- Inherited Members
Fields
AuthMechanisms
SASL auth mechanisms to use.
public readonly IEnumerable<IAuthMechanismFactory> AuthMechanisms
Field Value
ClientProperties
Dictionary of client properties to be sent to the server.
public readonly IDictionary<string, object?> ClientProperties
Field Value
ClientProvidedName
Default client provided name to be used for connections.
public readonly string? ClientProvidedName
Field Value
ConsumerDispatchConcurrency
Set to a value greater than one to enable concurrent processing. For a concurrency greater than one IAsyncBasicConsumer will be offloaded to the worker thread pool so it is important to choose the value for the concurrency wisely to avoid thread pool overloading. IAsyncBasicConsumer can handle concurrency much more efficiently due to the non-blocking nature of the consumer.
public readonly ushort ConsumerDispatchConcurrency
Field Value
ContinuationTimeout
Amount of time protocol operations (e.g.
queue.declare
) are allowed to take before timing out.
public readonly TimeSpan ContinuationTimeout
Field Value
CredentialsProvider
Default ICredentialsProvider implementation. If set, this overrides UserName / Password
public readonly ICredentialsProvider CredentialsProvider
Field Value
HandshakeContinuationTimeout
Amount of time protocol handshake operations are allowed to take before timing out.
public readonly TimeSpan HandshakeContinuationTimeout
Field Value
HeartbeatInterval
Heartbeat timeout to use when negotiating with the server.
public readonly TimeSpan HeartbeatInterval
Field Value
MaxChannelCount
Maximum channel number to ask for.
public readonly ushort MaxChannelCount
Field Value
MaxFrameSize
Frame-max parameter to ask for (in bytes).
public readonly uint MaxFrameSize
Field Value
MaxInboundMessageBodySize
Maximum body size of a message (in bytes).
public readonly uint MaxInboundMessageBodySize
Field Value
NetworkRecoveryInterval
Amount of time client will wait for before re-trying to recover connection.
public readonly TimeSpan NetworkRecoveryInterval
Field Value
Password
Password to use when authenticating to the server.
public readonly string Password
Field Value
RequestedConnectionTimeout
Timeout setting for connection attempts.
public readonly TimeSpan RequestedConnectionTimeout
Field Value
TopologyRecoveryEnabled
Set to false to make automatic connection recovery not recover topology (exchanges, queues, bindings, etc).
public readonly bool TopologyRecoveryEnabled
Field Value
TopologyRecoveryExceptionHandler
Custom logic for handling topology recovery exceptions that match the specified filters.
public readonly TopologyRecoveryExceptionHandler TopologyRecoveryExceptionHandler
Field Value
TopologyRecoveryFilter
Filter to include/exclude entities from topology recovery. Default filter includes all entities in topology recovery.
public readonly TopologyRecoveryFilter TopologyRecoveryFilter
Field Value
UserName
Username to use when authenticating to the server.
public readonly string UserName
Field Value
VirtualHost
Virtual host to access during this connection.
public readonly string VirtualHost