protected override IChannelBinder CreateInnerChannelBinder(EndpointAddress to, Uri via) { IRequestChannel channel; if (this.datagramAdapter) { channel = DatagramAdapter.GetRequestChannel( delegate() { return(this.InnerChannelFactory.CreateChannel(to, via)); }, this.timeouts); } else { channel = this.InnerChannelFactory.CreateChannel(to, via); } return(new RequestChannelBinder(channel)); }
protected override IChannelBinder CreateInnerChannelBinder(EndpointAddress to, Uri via) { IRequestChannel requestChannel; DatagramAdapter.Source <IRequestSessionChannel> channelSource = null; if (this.datagramAdapter) { if (channelSource == null) { channelSource = () => this.InnerChannelFactory.CreateChannel(to, via); } requestChannel = DatagramAdapter.GetRequestChannel(channelSource, base.timeouts); } else { requestChannel = base.InnerChannelFactory.CreateChannel(to, via); } return(new RequestChannelBinder(requestChannel)); }