コード例 #1
0
            protected override IChannelBinder CreateInnerChannelBinder(EndpointAddress to, Uri via)
            {
                IOutputChannel channel;

                if (this.datagramAdapter)
                {
                    channel = DatagramAdapter.GetOutputChannel(
                        delegate() { return(this.InnerChannelFactory.CreateChannel(to, via)); },
                        timeouts);
                }
                else
                {
                    channel = this.InnerChannelFactory.CreateChannel(to, via);
                }

                return(new OutputChannelBinder(channel));
            }
コード例 #2
0
            protected override IChannelBinder CreateInnerChannelBinder(EndpointAddress to, Uri via)
            {
                IOutputChannel outputChannel;

                DatagramAdapter.Source <IOutputSessionChannel> channelSource = null;
                if (this.datagramAdapter)
                {
                    if (channelSource == null)
                    {
                        channelSource = () => this.InnerChannelFactory.CreateChannel(to, via);
                    }
                    outputChannel = DatagramAdapter.GetOutputChannel(channelSource, base.timeouts);
                }
                else
                {
                    outputChannel = base.InnerChannelFactory.CreateChannel(to, via);
                }
                return(new OutputChannelBinder(outputChannel));
            }