You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying out Stylet and so far I'm definitely enjoying using it! I started to play with the event aggregator and discovered that it is entirely synchronous.
My reasoning for adding async APIs is in my toy project I am using MediatR notifications and the problem with MediatR notifications are the handlers are transient and are created per notification which obviously wont work for view models acting as notification handlers. My solution to this is to have essentially a translator to handle the INotification and send out the appropriate Stylet event used for the view models. MediatR handlers are generally async and it would be nice to keep everything async when converting between MediatR notifications and event aggregator events.
Would there be any interest in adding async methods to the event aggregator API?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying out Stylet and so far I'm definitely enjoying using it! I started to play with the event aggregator and discovered that it is entirely synchronous.
My reasoning for adding async APIs is in my toy project I am using MediatR notifications and the problem with MediatR notifications are the handlers are transient and are created per notification which obviously wont work for view models acting as notification handlers. My solution to this is to have essentially a translator to handle the INotification and send out the appropriate Stylet event used for the view models. MediatR handlers are generally async and it would be nice to keep everything async when converting between MediatR notifications and event aggregator events.
Would there be any interest in adding async methods to the event aggregator API?
All reactions