public ServerProcessing ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream) { // uncompressing the request requestStream = CompressionHelper.getUncompressedStreamCopy(requestStream); // pushing onto stack and forwarding the call sinkStack.Push(this, null); ServerProcessing srvProc = _nextSink.ProcessMessage(sinkStack, requestMsg, requestHeaders, requestStream, out responseMsg, out responseHeaders, out responseStream); // compressing the response responseStream = CompressionHelper.getCompressedStreamCopy(responseStream); // returning status information return(srvProc); }
public void AsyncProcessResponse(IServerResponseChannelSinkStack sinkStack, object state, IMessage msg, ITransportHeaders headers, Stream stream) { // compressing the response stream = CompressionHelper.getCompressedStreamCopy(stream); // forwarding to the stack for further processing sinkStack.AsyncProcessResponse(msg, headers, stream); }
public void AsyncProcessRequest(IClientChannelSinkStack sinkStack, IMessage msg, ITransportHeaders headers, Stream stream) { // generate a compressed stream using NZipLib stream = CompressionHelper.getCompressedStreamCopy(stream); // push onto stack and forward the request sinkStack.Push(this, null); _nextSink.AsyncProcessRequest(sinkStack, msg, headers, stream); }
public void ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, out ITransportHeaders responseHeaders, out Stream responseStream) { // generate a compressed stream using NZipLib requestStream = CompressionHelper.getCompressedStreamCopy(requestStream); // forward the call to the next sink _nextSink.ProcessMessage(msg, requestHeaders, requestStream, out responseHeaders, out responseStream); // deflate the response responseStream = CompressionHelper.getUncompressedStreamCopy(responseStream); }