Class MessageBusOptions
Base class for message bus configuration options, providing common settings for message bus instances.
public abstract class MessageBusOptions
- Inheritance
-
MessageBusOptions
- Inherited Members
- Extension Methods
Properties
EnableRetries
Gets a value indicating whether messages sent through this bus should be retried.
public bool EnableRetries { get; init; }
Property Value
Remarks
This switch decides only whether the bus retries at all. How it retries — the attempt count, the backoff strategy, the delay and any jitter — is configured once for the pipeline through the resilience options, so that retry behaviour has a single source of truth rather than a per-bus copy that would have to win or lose against it.
EnableTelemetry
Gets a value indicating whether tracing is enabled for this bus with OpenTelemetry spans.
public bool EnableTelemetry { get; init; }
Property Value
Name
Gets the name of the message bus instance.
[Required]
public string Name { get; init; }
Property Value
- string
The logical name of the bus configuration.
TargetUri
Gets the optional URI for remote dispatch (used in forwarding or remote buses).
public Uri? TargetUri { get; init; }
Property Value
- Uri
The remote target URI for dispatch.