Class BrokerClientConnectionOptions
- Namespace
- Silverback.Messaging.Configuration
- Assembly
- Silverback.Integration.dll
The options specifying if and when the broker clients have to be automatically connected.
public class BrokerClientConnectionOptions
- Inheritance
-
BrokerClientConnectionOptions
- Inherited Members
Constructors
BrokerClientConnectionOptions()
public BrokerClientConnectionOptions()
Properties
Mode
Gets or sets the BrokerClientConnectionMode. The default is Startup.
public BrokerClientConnectionMode Mode { get; set; }
Property Value
RetryInterval
Gets or sets interval between the connection retries. The default is 5 minutes. This setting applies to the connections made via ConnectAsync(CancellationToken), which connects the clients at startup or after startup according to Mode and can also be called to connect them manually, but not to ConnectAsync() or ConnectAllAsync().
public TimeSpan RetryInterval { get; set; }
Property Value
RetryOnFailure
Gets or sets a value indicating whether a retry must be performed if an exception is thrown when trying to connect. The default
is false. This setting applies to the connections made via ConnectAsync(CancellationToken), which
connects the clients at startup or after startup according to Mode and can also be called to connect them
manually, but not to ConnectAsync() or ConnectAllAsync().
public bool RetryOnFailure { get; set; }