How to make a call to my WCF service asynchronous?


Question

I have a WCF service that I call from a windows service.

The WCF service runs a SSIS package, and that package can take a while to complete and I don't want my windows service to have to wait around for it to finish.

How can I make my WCF service call asynchronous? (or is it asynchronous by default?)

1
25
3/18/2011 7:10:40 PM

Accepted Answer

All your needs will be satisfied in the following articles from MSDN:

Implementing an Async Service Operation

Calling WCF Service Async

Designing Service Contracts

27
12/30/2008 5:02:57 PM

On Visual Studio 2010, on the Add Service Reference > click Advanced button > check the Generate Asynchronous Operations checkbox.

After doing so, the Async operations will be added and be available for your use.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon