IGoor
IGoor

Reputation: 47

NServiceBus - How do I call NSB via web service but asynchronously

I want to achieve something similar to the webservice bridge sample but i don't want to wait for a response from the webservice. I want the call to be asynchronous. What is the best way to do this?

Should I just use the webservice bridge and call ProcessAsync as opposed to Process? or Should I not use the webservice bridge and just create a webmethod that calls Global.Bus.Send?

Thanks in advance

Upvotes: 0

Views: 644

Answers (1)

Udi Dahan
Udi Dahan

Reputation: 12057

If you expose your NServiceBus endpoint using the built-in WebService functionality, then you'd do this like you call any web service asynchronously. The webservice bridge sample shows how you can set up your own web service rather than using the built-in functionality.

Upvotes: 2

Related Questions