コード例 #1
0
        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);
        }
コード例 #2
0
        protected override void OnInitializeAndValidate(ServiceEndpointElement serviceEndpointElement)
        {
            base.OnInitializeAndValidate(serviceEndpointElement);

            ConfigurationUtility.InitializeAndValidateUdpServiceEndpointElement(serviceEndpointElement);
        }
コード例 #3
0
        protected override void OnInitializeAndValidate(ChannelEndpointElement channelEndpointElement)
        {
            base.OnInitializeAndValidate(channelEndpointElement);

            ConfigurationUtility.InitializeAndValidateUdpChannelEndpointElement(channelEndpointElement);
        }
コード例 #4
0
 public ConfigurationDiscoveryEndpointProvider()
 {
     this.channelEndpointElement = ConfigurationUtility.GetDefaultDiscoveryEndpointElement();
 }