I'm interested in trying out MassTransit. I do understand that at some levels, coupling to MT is necessary. However, is it possible to use my own implementation of a handler instead of IConsumer<T>? Is there a hook in the library to "automagically" discover IConsumer instances instead of explicitly registering them at compile time.
I'd like to describe in detail a bit more what I am trying to accomplish.
I would like my own implementation of IHandler<T> to execute, instead of an IConsumer<T>. I would like a consumer to marshal my own custom consume context back up to my handler. For example, consider my own handler of SendEmailToCustomerHandler that implements IHandler<SendEmailEvent>. I'd ideally want MassTransit to have it's IConsumer<SendEmailEvent>, but instead of having the Consume method called, I'd like to marshal this to my own event handler.
The end goal would be to not have to use IConsumer<T> when using my event handlers in my project directly, but rather provide a thin veneer on top of it.