예제 #1
0
        protected string GetSourceUrl(MetadataSection section)
        {
            // The SourceUrl property of the MetadataSection is set by the WCF MetadataExchangeClient when downloading metadata from a web server.
            // This property is not set when the metadata comes from a WSDL file in disk as the WSDL file processing code is not in WCF.
#if NETCORE
            return(section.SourceUrl);
#else
            return(section.GetType().GetProperty("SourceUrl", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(section) as string);
#endif
        }