mhinze / ShortBus

In-process mediator with low-friction API
MIT License
210 stars 41 forks source link

Exported Response return with exception handling as an Extension method while reverting the core to plain mediation #27

Closed patroza closed 1 year ago

patroza commented 10 years ago

I would propose this alternative implementation where the mediator has reverted back to plain behavior (e.g not catching exceptions, and returning TResponseData or void).

I have exported the exception handling and Response return behavior to extension methods, while still preserving AggregateException for the base Notify methods (the async variant just relies on the default behavior of WhenAll).

I believe this gives maxmimum flexibility and leaves it up to callers which approach they prefer.

mhinze commented 10 years ago

I like this, thank you.

patroza commented 10 years ago

Glad you like it and no problem!

kentcooper commented 9 years ago

I was looking through this and pulled your branch down, and it seems you might need to update the Example tests as well.