public ServerProcessing ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream) { sinkStack.Push(this, null); ServerProcessing serverProcessing = _nextSink.ProcessMessage(sinkStack, requestMsg, requestHeaders, requestStream, out responseMsg, out responseHeaders, out responseStream); switch (serverProcessing) { case ServerProcessing.Async: sinkStack.StoreAndDispatch(this, null); return serverProcessing; case ServerProcessing.OneWay: case ServerProcessing.Complete: sinkStack.Pop(this); return serverProcessing; default: return serverProcessing; } }
public ServerProcessing ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream) { sinkStack.Push(this, null); ServerProcessing serverProcessing = _nextSink.ProcessMessage(sinkStack, requestMsg, requestHeaders, requestStream, out responseMsg, out responseHeaders, out responseStream); switch (serverProcessing) { case ServerProcessing.Async: sinkStack.StoreAndDispatch(this, null); return(serverProcessing); case ServerProcessing.OneWay: case ServerProcessing.Complete: sinkStack.Pop(this); return(serverProcessing); default: return(serverProcessing); } }