9 writes to Metadata
dotnet-svcutil-lib (9)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSection.cs (3)
103section.Metadata = policy; 118section.Metadata = schema; 133section.Metadata = serviceDescription;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSet.cs (6)
569o.@Metadata = Read67_MetadataSet(false, true); 574o.@Metadata = Microsoft.Xml.Schema.XmlSchema.Read(this.Reader, null); 582o.@Metadata = System.Web.Services.Description.ServiceDescription.Read(this.Reader); 588o.@Metadata = (global::System.ServiceModel.Description.MetadataReference)ReadSerializable((Microsoft.Xml.Serialization.IXmlSerializable)System.Activator.CreateInstance(typeof(global::System.ServiceModel.Description.MetadataReference), System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic, null, new object[0], null)); 593o.@Metadata = Read65_MetadataLocation(false, true); 598o.@Metadata = (global::Microsoft.Xml.XmlElement)ReadXmlNode(false);
43 references to Metadata
dotnet-svcutil-lib (43)
CodeSerializer.cs (2)
137var wsdlDocuments = metadataSections.Where(s => s.Metadata is WsdlNS.ServiceDescription).Cast<WsdlNS.ServiceDescription>(); 167var schemaDocuments = metadataSections.Where(s => s.Metadata is XmlSchema).Cast<XmlSchema>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (10)
495if (section.Metadata is MetadataSet) 497foreach (MetadataSection innerSection in ((MetadataSet)section.Metadata).MetadataSections) 503else if (section.Metadata is MetadataReference) 507EndpointAddress address = ((MetadataReference)section.Metadata).Address; 516else if (section.Metadata is MetadataLocation) 520string location = ((MetadataLocation)section.Metadata).Location; 529else if (section.Metadata is WsdlNS.ServiceDescription) 537else if (section.Metadata is XsdNS.XmlSchema) 553XsdNS.XmlSchema schema = (XsdNS.XmlSchema)section.Metadata; 568WsdlNS.ServiceDescription wsdl = (WsdlNS.ServiceDescription)section.Metadata;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSet.cs (14)
349if (o.@Metadata is global::System.Web.Services.Description.ServiceDescription) 351((global::System.Web.Services.Description.ServiceDescription)o.@Metadata).Write(this.Writer); 353else if (o.@Metadata is global::Microsoft.Xml.Schema.XmlSchema) 355((global::Microsoft.Xml.Schema.XmlSchema)o.@Metadata).Write(this.Writer); 357else if (o.@Metadata is global::System.ServiceModel.Description.MetadataSet) 359Write67_MetadataSet(@"Metadata", @"http://schemas.xmlsoap.org/ws/2004/09/mex", ((global::System.ServiceModel.Description.MetadataSet)o.@Metadata), false, false); 361else if (o.@Metadata is global::System.ServiceModel.Description.MetadataLocation) 363Write65_MetadataLocation(@"Location", @"http://schemas.xmlsoap.org/ws/2004/09/mex", ((global::System.ServiceModel.Description.MetadataLocation)o.@Metadata), false, false); 365else if (o.@Metadata is global::System.ServiceModel.Description.MetadataReference) 367WriteSerializable((Microsoft.Xml.Serialization.IXmlSerializable)((global::System.ServiceModel.Description.MetadataReference)o.@Metadata), @"MetadataReference", @"http://schemas.xmlsoap.org/ws/2004/09/mex", false, true); 369else if (o.@Metadata is Microsoft.Xml.XmlElement) 371Microsoft.Xml.XmlElement elem = (Microsoft.Xml.XmlElement)o.@Metadata; 383if (o.@Metadata != null) 385throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateUnknownTypeException(o.@Metadata));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (3)
596if (doc.Metadata is MetadataReference || doc.Metadata is MetadataLocation) 633return ((T)doc.Metadata);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (2)
2342if (section.Metadata is MetadataReference) 2344issuerMetadata = ((MetadataReference)section.Metadata).Address;
Metadata\MetadaExchangeResolver.cs (2)
57return _metadataSet != null && _metadataSet.MetadataSections.Any((section) => section.Metadata is XmlSchema || section.Metadata is WsdlNS.ServiceDescription);
Metadata\MetadataDocumentLoader.cs (3)
578var documents = metadataSections.Select((s) => s.Metadata); 636var wsdl = section.Metadata as WsdlNS.ServiceDescription; 650UpdateSchemaSourceUri(section.Metadata as XmlNS.Schema.XmlSchema, GetSourceUrl(section));
Metadata\MetadataDocumentSaver.cs (6)
103if (!AddUnresolvedSchemaRefs(doc.Metadata as XmlNS.Schema.XmlSchema)) 105AddUnresolvedWsdlRefs(doc.Metadata as WsdlNS.ServiceDescription); 112if (AddWsdl(doc.Metadata as WsdlNS.ServiceDescription) == null) 114if (AddSchema(doc.Metadata as XmlNS.Schema.XmlSchema) == null) 116if (AddXmlDocument(doc.Metadata as XmlNS.XmlElement, doc.Dialect) == null) 119string typeName = doc.Metadata.GetType().ToString();
Metadata\ServiceDescriptor.cs (1)
242return this.metadataDocumentLoader.MetadataSections.Select((s) => s.Metadata).OfType<WsdlNS.ServiceDescription>().Any((wsdl) => ContainsHttpBindings(wsdl));