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)); }
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)); }