开发者

webservice timeout c#

I have a c# application and I want to fire off a webservice but I dont care about the response and I also dont care if 开发者_运维问答it fails. At the moment i fire of the service async but i am getting an error when the call fails.

Is there anyway I can configure the app/webservice to stop it failing without rapping try catches around them (basiclly fire and forget)?

Thanks Sp


Here is one idea:

Write your web service do that it returns 'success' right away, then fires off an async process that does the work.

You can also do this by creating a queue or something, where another process watches the queue and performs the work. Then the web service's only job, then, is to add an entry to the queue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜