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