-
I believe I'm probably missing something, However MessagePump in ServiceActivator always appears to call CommandProcessor.Send or CommandProcessor.Publish and never SendAsync or PublishAsync which results in it throwing an error stating that I can't cast my Command Handler to type 'Paramore.Brighter.IHandleRequests' which is Correct as its a Paramore.Brighter.IHandleRequestsAsync What am I missing, or what Have I done wrong? I have both Handlers and AsyncHandlers setup,
From what I can see, the PublishAsync is never called in the ServiceActivor Project Any pointers or assistance would be appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 17 replies
-
@iancooper Once I get it working would you like me to commit a sample app (Greeting app like your current ones) for Service Activator and Async Handlers? |
Beta Was this translation helpful? Give feedback.
-
@preardon There is a PR around this, and it's complicated. We don't support an async pipeline as yet. I have a PR in to fix that up, but it won't be v9. Short version for now:
For now, don't use async in the dispatcher pipeline. Although that seems negative, async is actually painful in a pipeline reading from a queue of work of you don't grok the implications. Just use more performers |
Beta Was this translation helpful? Give feedback.
-
@preardon This should work now, try taking it out for a spin |
Beta Was this translation helpful? Give feedback.
-
To Update, this will now work as of the Next Release, Fix is in |
Beta Was this translation helpful? Give feedback.
To Update, this will now work as of the Next Release, Fix is in