Async call to WCF with C#?

前端 未结 3 1969
孤街浪徒
孤街浪徒 2020-12-18 09:03

In C#, how do I make an async call to a WCF Web Service? I have a Service Reference set up to generate async. I also modified my calls to use { WebServiceObject.Begin* () }

3条回答
  •  臣服心动
    2020-12-18 09:28

    See MSDN here; http://msdn.microsoft.com/en-us/library/system.asynccallback.aspx

    here; http://msdn.microsoft.com/en-us/library/ms228969.aspx

    here; http://msdn.microsoft.com/en-us/library/ms228975.aspx

    and here; http://msdn.microsoft.com/en-us/library/86wf6409.aspx

    Basicly in Begin* you set an callback, that callback is called when the operation has completed. There you call End* to retrieve the appropriate data.

提交回复
热议问题