public void PropagateChannelParameters(IChannel innerChannel) { if (innerChannel == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("innerChannel"); } this.ThrowIfMutable(); ChannelParameterCollection property = innerChannel.GetProperty <ChannelParameterCollection>(); if (property != null) { for (int i = 0; i < base.Count; i++) { property.Add(base[i]); } } }
public void PropagateChannelParameters(IChannel innerChannel) { if (innerChannel == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(innerChannel)); } ThrowIfMutable(); ChannelParameterCollection innerCollection = innerChannel.GetProperty <ChannelParameterCollection>(); if (innerCollection != null) { for (int i = 0; i < Count; i++) { innerCollection.Add(this[i]); } } }