The CastleMessageHandlerFactory
inherits from the abstract MessageHandlerFactory
class in order to implement the IMessageHandlerFactory
interface. This class will provide the message handlers from the WindsorContainer
.
bus = ServiceBus
.Create
(
c => c.MessageHandlerFactory(new CastleMessageHandlerFactory(new WindsorContainer()))
)
.Start();