-
-
Notifications
You must be signed in to change notification settings - Fork 364
Rebus configuration section
If you include the Rebus.XmlConfig
package, you can configure Rebus' endpoint mappings in XML.
This can make your application slightly more flexible because this important aspect of message routing does not require the application to be compiled again.
Do this at the top of your app.config/web.config:
<configSections>
<section name="rebus" type="Rebus.XmlConfig.RebusConfigurationSection, Rebus.XmlConfig" />
</configSections>
and then, some place further down in the file:
<rebus>
<endpoints>
<add messages="AnotherService.Messages" endpoint="anotherService.input@yetAnotherMachine" />
</endpoints>
</rebus>
which will declare that all messages from the AnotherService.Messages
assembly are owned by the service with the input queue anotherService.input
on the yetAnotherMachine
machine.
Then, when the bus does a bus.Send
or a bus.Subscribe
with a message type from the AnotherService.Messages
assembly, the message (or, when subscribing: the subscription request) will be routed to anotherService.input
on host yetAnotherMachine
.
Last thing to do is to tell Rebus to pick up the endpoint mappings from the configuration file - this is how you do it:
Configure.With(....)
.Routing(t => t.TypeBased().AddEndpointMappingsFromAppConfig())
.(...)
Basic stuff
- Home
- Introduction
- Getting started
- Different bus modes
- How does rebus compare to other .net service buses?
- 3rd party extensions
- Rebus versions
Configuration
Scenarios
Areas
- Logging
- Routing
- Serialization
- Pub sub messaging
- Process managers
- Message context
- Data bus
- Correlation ids
- Container adapters
- Automatic retries and error handling
- Message dispatch
- Thread safety and instance policies
- Timeouts
- Timeout manager
- Transactions
- Delivery guarantees
- Idempotence
- Unit of work
- Workers and parallelism
- Wire level format of messages
- Handler pipeline
- Polymorphic message dispatch
- Persistence ignorance
- Saga parallelism
- Transport message forwarding
- Testing
- Outbox
- Startup/shutdown
Transports (not a full list)
Customization
- Extensibility
- Auto flowing user context extensibility example
- Back off strategy
- Message compression and encryption
- Fail fast on certain exception types
Pipelines
- Log message pipelines
- Incoming messages pipeline
- Incoming step context
- Outgoing messages pipeline
- Outgoing step context
Prominent application services