Open jamshally opened 2 years ago
Replacing the IServiceBusFactory
registration with a custom implementation is probably the way to go. You should be able to replace the registration like this:
services.Replace<IServiceBusFactory, MyCustomServiceBusFactory>
If that doesn't work for some reason, then we could refactor this bit such that you can configure a factory delegate form ElsaOptions
- which is what we do for things like the persistence providers too.
Summary
In an application that already uses the Rebus ServiceBus, is it possible to configure Elsa to use the same bus?
Motivation
Initial Attempt (and Difficulty)
One option would perhaps be to provide a custom IServiceBusFactory implementation. However the DI configuration in Elsa seems to lock in the concrete ServiceBusFactory class:
Questions
Thanks