Class TransportValidationOptions
Configuration options for transport startup validation.
public sealed class TransportValidationOptions
- Inheritance
-
TransportValidationOptions
- Inherited Members
- Extension Methods
Properties
RequireAtLeastOneTransport
Gets or sets a value indicating whether at least one transport must be registered.
public bool RequireAtLeastOneTransport { get; set; }
Property Value
- bool
True to require at least one transport; false to allow zero. Default is false.
Remarks
Set this to true in production environments where transport-based messaging is required. Set to false for testing scenarios or applications that may not use transports.
RequireDefaultTransportWhenMultiple
Gets or sets a value indicating whether a default transport must be configured when multiple transports are registered.
public bool RequireDefaultTransportWhenMultiple { get; set; }
Property Value
- bool
True to require a default when multiple transports exist; false to allow ambiguity. Default is true.
Remarks
When multiple transports are registered, this option ensures one is designated as the default to avoid ambiguity when publishing messages without an explicit transport specification.
RequireRemoteTransport
Gets or sets a value indicating whether a remote (network) transport must be registered.
public bool RequireRemoteTransport { get; set; }
Property Value
Remarks
Set this to true in deployments where cross-process delivery is mandatory (for example a distributed system that must not silently fall back to in-process delivery). When enabled, startup fails fast if every registered transport is Local.
ValidateOnStartup
Gets or sets a value indicating whether to validate transport configuration at startup.
public bool ValidateOnStartup { get; set; }
Property Value
- bool
True to enable validation; false to skip. Default is true.