public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); OneWayElement element = (OneWayElement)from; if (element.ElementInformation.Properties["channelPoolSettings"].ValueOrigin != PropertyValueOrigin.Default) { this.ChannelPoolSettings.CopyFrom(element.ChannelPoolSettings); } this.MaxAcceptedChannels = element.MaxAcceptedChannels; this.PacketRoutable = element.PacketRoutable; }
public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); OneWayElement source = (OneWayElement)from; #pragma warning suppress 56506 // Microsoft, base.CopyFrom() validates the argument PropertyInformationCollection propertyInfo = source.ElementInformation.Properties; if (propertyInfo[ConfigurationStrings.ChannelPoolSettings].ValueOrigin != PropertyValueOrigin.Default) { this.ChannelPoolSettings.CopyFrom(source.ChannelPoolSettings); } this.MaxAcceptedChannels = source.MaxAcceptedChannels; this.PacketRoutable = source.PacketRoutable; }