The service is responsible for closing the stream and, if you do not change the default behavior, it does this automatically (the behavior with defalut values ββis always used). If you set OperationBehavior.AutoDisposeParameters to false , you must register a handler for OperationContext.OperationCompleted and delete the stream in the handler, as described here .
The client cannot close the stream, because the client has a different one - you do not pass a link to your stream or a link to your file handler. The internal contents of the file are copied for the transport, and the client processes it in its stream instance (where it is responsible for deleting it).
Ladislav Mrnka Jun 26 '11 at 11:02 2011-06-26 11:02
source share