Exemplo n.º 1
0
        public DuplexServiceRuntimeChannel(IChannel channel, DispatchRuntime runtime)
            : base(channel, runtime)
        {
            // setup callback ClientRuntimeChannel.
            var crt = runtime.CallbackClientRuntime;
            var cd  = ContractDescriptionGenerator.GetCallbackContract(runtime.Type, crt.CallbackClientType);

            client = new ClientRuntimeChannel(crt, cd, this.DefaultOpenTimeout, this.DefaultCloseTimeout, channel, null,
                                              runtime.ChannelDispatcher.MessageVersion, this.RemoteAddress, null);
        }