I posted about stream request here
[wcf-chunk-data-with-stream]:WCF chunk data with stream
I solved that task but now when i close request in client part server continue to send data. is it possible to cancel stream request from WCF server to client?
我在这里发布了关于流请求[wcf-chunk-data-with-stream]:带流的WCF块数据我解决了这个任务但现在当我在客户端部分服务器中关闭请求时继续发送数据。是否可以取消从WCF服务器到客户端的流请求?
1 个解决方案
#1
you could Abort instead of closing proxy if you want to cancel. Make sure you handle the exceptions on the server side.
如果你想取消,你可以中止而不是关闭代理。确保在服务器端处理异常。
I usually do somehting like :
我经常这样做:
serviceClient.Abort();
#1
you could Abort instead of closing proxy if you want to cancel. Make sure you handle the exceptions on the server side.
如果你想取消,你可以中止而不是关闭代理。确保在服务器端处理异常。
I usually do somehting like :
我经常这样做:
serviceClient.Abort();