[Dev Question] How is Handler Result Processing Used

Topics: Framework Services
Apr 27, 2013 at 9:58 AM

I am in the middle of unit testing the event aggregator. I am looking at the HandlerResultProcessing func that looks to be capturing the result of the invoked handle.

However, all handlers need to be implementations from void IHandle.Handle(T message) based on the internal implementation for Handler. This would suggest that it is not handling the result but something else.

Could anyone tell me how this is used?
Apr 27, 2013 at 10:28 AM
Your handler can be a coroutine or an async method that returns Task:
  • IHandleWithCoroutine to have a coroutine handler
  • IHandleWithTask to have an (maybe) async Task handler
This is supported by HandlerResultProcessing and is configured in BootstrapperBase.
Apr 27, 2013 at 10:35 AM

I didn't spot these extra handlers.