【发布时间】:2012-03-21 05:49:44
【问题描述】:
我目前正在构建一个使用托管在 Web 服务器上的 WCF 数据服务的 WP7 应用程序。我想处理的是
cathayService.ServiceException += (sender, e) =>
{
Debug.WriteLine(e.Exception.ToString());
MessageBox.Show(e.Exception.ToString(), "Service Error", MessageBoxButton.OK);
};
如果我没有互联网连接,服务异常就会触发。当我面临快速的应用程序切换时,它也会触发。我如何能够区分 ServiceException 的来源?
希望有人能给我一个想法...非常感谢! :)
【问题讨论】:
标签: wcf windows-phone-7 wcf-data-services fast-app-switching