What thread calls the completed event handler on silverlight WCF calls?

前端 未结 3 2075
甜味超标
甜味超标 2021-01-06 02:45

Assume that I have Silverlight app doing a call to a WCF service:

void DoStuff()
{
    MyProxy proxy = new MyProxy();
    proxy.DoStuffCompleted += DoStuffCo         


        
3条回答
  •  暖寄归人
    2021-01-06 03:36

    The Completed event will occur on a different thread than the UI Thread. Multiple Completed events may be executed simultaneously on different threads because a thread pool is used to handle results.

提交回复
热议问题