protected override void OnInitializeAndValidate(ServiceEndpointElement serviceEndpointElement)
 {
     if (!String.IsNullOrEmpty(serviceEndpointElement.Contract))
     {
         throw FxTrace.Exception.AsError(new ConfigurationErrorsException(SR2.DiscoveryConfigContractSpecified(serviceEndpointElement.Kind)));
     }
 }
Exemplo n.º 2
0
        protected override void OnInitializeAndValidate(ServiceEndpointElement serviceEndpointElement)
        {
            if (!String.IsNullOrEmpty(serviceEndpointElement.Contract))
            {
                throw FxTrace.Exception.AsError(new ConfigurationErrorsException(SR2.DiscoveryConfigContractSpecified(serviceEndpointElement.Kind)));
            }

            if (PropertyValueOrigin.Default == serviceEndpointElement.ElementInformation.Properties[ConfigurationStrings.IsSystemEndpoint].ValueOrigin)
            {
                serviceEndpointElement.IsSystemEndpoint = true;
            }
        }