示例#1
0
        ContextChannelRequestContext CreateContextChannelRequestContext(RequestContext innerContext)
        {
            ServiceContextProtocol contextProtocol = new ServiceContextProtocol(this.contextExchangeMechanism);

            contextProtocol.OnIncomingMessage(innerContext.RequestMessage);
            return(new ContextChannelRequestContext(innerContext, contextProtocol, this.DefaultSendTimeout));
        }
 protected ContextInputChannelBase(ChannelManagerBase channelManager, TChannel innerChannel, ContextExchangeMechanism contextExchangeMechanism) : base(channelManager, innerChannel)
 {
     this.contextExchangeMechanism = contextExchangeMechanism;
     this.contextProtocol          = new ServiceContextProtocol(contextExchangeMechanism);
 }