Class ChaparMassTransitOptions
Configuration options for the MassTransit‑based Chapar bus.
Inherited Members
Namespace: Chapar.MassTransit.Options
Assembly: Chapar.MassTransit.dll
Syntax
public class ChaparMassTransitOptions
Properties
| Edit this page View SourceConfigureBusRegistration
An optional callback that allows additional MassTransit configuration at the bus registration level (e.g., adding Entity Framework outbox). This is invoked before the RabbitMQ transport is configured.
Declaration
public Action<IBusRegistrationConfigurator>? ConfigureBusRegistration { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IBusRegistrationConfigurator> |
ConfigureRabbitMq
An optional callback that allows additional MassTransit configuration at the RabbitMQ transport level. This is invoked after the standard Chapar configuration.
Declaration
public Action<IBusRegistrationContext, IRabbitMqBusFactoryConfigurator>? ConfigureRabbitMq { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IBusRegistrationContext, IRabbitMqBusFactoryConfigurator> |
DefaultExchanges
Default exchanges that will be bound to every consumer queue that does not carry an explicit ExchangeAttribute or QueueNameAttribute. Handlers decorated with those attributes are responsible for their own bindings.
Declaration
public List<ExchangeConfig> DefaultExchanges { get; set; }
Property Value
| Type | Description |
|---|---|
| List<ExchangeConfig> |
DefaultHeaders
Headers that will be added to every outgoing message unless overridden per message. Useful for multi‑tenancy, tracing, etc.
Declaration
public Dictionary<string, object> DefaultHeaders { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, object> |
ExchangeNamePrefix
Optional prefix added to generated exchange/entity names.
Declaration
public string? ExchangeNamePrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ExchangeNameSuffix
Optional suffix added to generated exchange/entity names.
Declaration
public string? ExchangeNameSuffix { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Host
RabbitMQ host name or IP address.
Declaration
public string Host { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MessageTypeMappings
Explicit broker-level message name mappings keyed by message CLR full name.
Declaration
public IDictionary<string, string> MessageTypeMappings { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, string> |
Password
Login password.
Declaration
public string Password { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
QueueNamePrefix
Optional prefix added to generated queue names.
Declaration
public string? QueueNamePrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
QueueNameSuffix
Optional suffix added to generated queue names.
Declaration
public string? QueueNameSuffix { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Resilience
Settings for retry and circuit breaker policies applied by MassTransit.
Declaration
public ResilienceOptions Resilience { get; set; }
Property Value
| Type | Description |
|---|---|
| ResilienceOptions |
Username
Login username.
Declaration
public string Username { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
VirtualHost
RabbitMQ virtual host (default is "/").
Declaration
public string VirtualHost { get; set; }
Property Value
| Type | Description |
|---|---|
| string |