public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);

            DiscoveryClientElement source = (DiscoveryClientElement)from;

            if (PropertyValueOrigin.Default == this.ElementInformation.Properties[ConfigurationStrings.Endpoint].ValueOrigin)
            {
                ChannelEndpointElement udpChannelEndpointElement = ConfigurationUtility.GetDefaultDiscoveryEndpointElement();
                udpChannelEndpointElement.Copy(source.DiscoveryEndpoint);
            }
            else
            {
                this.DiscoveryEndpoint.Copy(source.DiscoveryEndpoint);
            }
            this.FindCriteria.CopyFrom(source.FindCriteria);
        }
 public ConfigurationDiscoveryEndpointProvider()
 {
     this.channelEndpointElement = ConfigurationUtility.GetDefaultDiscoveryEndpointElement();
 }