Cancel request for stream from WCF server to client

I posted a stream request here
[wcf-chunk-data-with-stream]: WCF chunk data with stream
I solved this problem, but now when I close the request on the client side, the server keeps sending data. is it possible to cancel a stream request from a WCF server to a client?

+1


a source to share


1 answer


you can opt out of closing the proxy if you want to cancel. Make sure you handle server side exceptions.

I usually do something like:




   serviceClient.Abort();

      

+2


a source







All Articles