标签: c# wcf visual-studio
我有一个由Visual Studio生成的WCF客户端,它为BeginX()和End()生成异步方法。如果服务抛出异常,我将如何/在何处捕获异常。
e.g:
m_service.BeginMyServiceMethod(PriorDate, ServiceMethodCompletehandler, null); private void ServiceMethodCompletehandler(IAsyncResult ar) { }