WCF threading - non-responsive UI

前端 未结 3 1532
天命终不由人
天命终不由人 2020-12-30 14:43

I\'m trying to configure some WCF stuff. Currently, I have a server which allows remote users to download files, and client. In the server, I use a ServiceHost class. I assu

3条回答
  •  自闭症患者
    2020-12-30 14:59

    "From the same Windows Form application if you were to construct the ServiceHost instance before starting the UI thread, it will run on its own thread. That means worker threads allocated from the thread pool process messages instead of the message loop. Thus, services can truly process multiple concurrent requests. "

提交回复
热议问题