views:

420

answers:

2

Hi, I posted about stream request here
[wcf-chunk-data-with-stream]:http://stackoverflow.com/questions/853448/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?

+1  A: 

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();
Emmanuel
It's really helps, thanks a lot Emmanuel!
ArsenMkrt
A: 

This doesn't cancel the service though. Anyone knows how to cancel server too?

iBe