Class BrokerConnectionOptions
The options specifying if and when the message broker has to be automatically connected.
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Integration.dll
Syntax
public class BrokerConnectionOptions
Properties
| Improve this doc View sourceDefault
Gets the default options.
Declaration
public static BrokerConnectionOptions Default { get; }
Property Value
Type | Description |
---|---|
BrokerConnectionOptions |
Mode
Gets or sets the BrokerConnectionMode. The default is Startup.
Declaration
public BrokerConnectionMode Mode { get; set; }
Property Value
Type | Description |
---|---|
BrokerConnectionMode |
RetryInterval
Gets or sets interval between the connection retries. The default is 5 minutes. This setting is
ignored
when Mode
is set to manual.
Declaration
public TimeSpan RetryInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
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 true
. This setting is ignored when Mode
is set to
manual.
Declaration
public bool RetryOnFailure { get; set; }
Property Value
Type | Description |
---|---|
bool |