public DurableInstanceContextDuplexChannel(ChannelManagerBase channelManger,
                                                   ContextType contextType,
                                                   IDuplexChannel innerChannel,
                                                   string contextStoreLocation)
            : base(channelManger, innerChannel)
        {
            this.contextType = contextType;

            this.outputChannel = new DurableInstanceContextOutputChannel(channelManger,
                                                                         contextType, (IOutputChannel)innerChannel, contextStoreLocation);

            this.inputChannel = new DurableInstanceContextInputChannel(channelManger,
                                                                       contextType, (IInputChannel)innerChannel);
        }
        public DurableInstanceContextDuplexChannel(ChannelManagerBase channelManger,
            ContextType contextType,
            IDuplexChannel innerChannel,
            string contextStoreLocation)
            : base(channelManger, innerChannel)
        {
            this.contextType = contextType;

            this.outputChannel = new DurableInstanceContextOutputChannel(channelManger,
                contextType, (IOutputChannel)innerChannel, contextStoreLocation);

            this.inputChannel = new DurableInstanceContextInputChannel(channelManger,
                contextType, (IInputChannel)innerChannel);
        }