Need sample fire and forget async call to WCF service

前端 未结 3 493
忘了有多久
忘了有多久 2020-12-08 23:10

On a scheduled interval I need to call a WCF service call another WCF Service asyncronously. Scheduling a call to a WCF service I have worked out.

What I think I ne

3条回答
  •  感情败类
    2020-12-08 23:58

    Don't use BeginInvoke or even a thread for your pattern. Make sure you decorate your classes with the AsyncPattern according to Microsoft website, otherwise your Async delegates and threads will be run in a synchronous mode. WCF forces this behavior. This info was posted by another op who found a solution to blocking callbacks question on stack .. sorry but I do not remember the link.

提交回复
热议问题