开发者

WCF service timeout on asp.net page

开发者 https://www.devze.com 2023-01-15 13:24 出处:网络
开发者_StackOverflow中文版I\'m calling a WCF service on my asp.net site. sometimes this service is down and it takes 30seconds to timeout, which slows down my page as I\'m calling syncronously.
开发者_StackOverflow中文版

I'm calling a WCF service on my asp.net site. sometimes this service is down and it takes 30seconds to timeout, which slows down my page as I'm calling syncronously.

What's the best way around this? decrease timeout? is there a way to see if the service is down before calling?

Thanks


If you are talking about usablity point of view, I'd suggest loading up a "loading page" first, and do long polling on that page to the page you are loading WCF services with.

That way user can see that the server has responded, just that this particular page takes a while to load.

0

精彩评论

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