9 instantiations of MetadataSection
dotnet-svcutil-lib (9)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (3)
579MetadataSection schemaSection = new MetadataSection(null, null, schema); 652section = new MetadataSection(MetadataSection.MetadataExchangeDialect, null, newSet); 671section = new MetadataSection(null, null, doc.DocumentElement);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSection.cs (3)
99MetadataSection section = new MetadataSection(); 114MetadataSection section = new MetadataSection(); 129MetadataSection section = new MetadataSection();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSet.cs (1)
531o = new global::System.ServiceModel.Description.MetadataSection();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2289metadataSet.MetadataSections.Add(new MetadataSection(null, null, new MetadataReference(issuerMetadataAddress, AddressingVersion.WSAddressing10)));
Metadata\MetadataDocumentLoader.cs (1)
424_metadataSections.Add(new MetadataSection(null, null, unknownXml));
80 references to MetadataSection
dotnet-svcutil-lib (80)
CodeSerializer.cs (2)
28internal CodeSerializer(CommandProcessorOptions options, IEnumerable<MetadataSection> inputMetadata) 131internal static string GetOutputFileName(CommandProcessorOptions options, IEnumerable<MetadataSection> metadataSections)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (19)
493internal void HandleSection(MetadataSection section) 497foreach (MetadataSection innerSection in ((MetadataSet)section.Metadata).MetadataSections) 551private void HandleSchemaImports(MetadataSection section) 566private void HandleWsdlImports(MetadataSection section) 579MetadataSection schemaSection = new MetadataSection(null, null, schema); 622internal MetadataSection Retrieve(TimeoutHelper timeoutHelper) 642internal abstract MetadataSection EndRetrieve(IAsyncResult result); 644static internal MetadataSection CreateMetadataSection(XmlReader reader, string sourceUrl) 646MetadataSection section = null; 652section = new MetadataSection(MetadataSection.MetadataExchangeDialect, null, newSet); 658section = MetadataSection.CreateFromServiceDescription(wsdl); 664section = MetadataSection.CreateFromSchema(schema); 822internal override MetadataSection EndRetrieve(IAsyncResult result) 845private MetadataSection _section; 869internal static MetadataSection End(IAsyncResult result) 1056internal override MetadataSection EndRetrieve(IAsyncResult result) 1084private MetadataSection _section; 1101internal static MetadataSection End(IAsyncResult result) 1259MetadataSection section = retriever.EndRetrieve(result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSection.cs (8)
85public static MetadataSection CreateFromPolicy(XmlElement policy, string identifier) 99MetadataSection section = new MetadataSection(); 107public static MetadataSection CreateFromSchema(XsdNS.XmlSchema schema) 114MetadataSection section = new MetadataSection(); 116section.Dialect = MetadataSection.XmlSchemaDialect; 122public static MetadataSection CreateFromServiceDescription(WsdlNS.ServiceDescription serviceDescription) 129MetadataSection section = new MetadataSection(); 131section.Dialect = MetadataSection.ServiceDescriptionDialect;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSet.cs (14)
19private Collection<MetadataSection> _sections = new Collection<MetadataSection>(); 28public MetadataSet(IEnumerable<MetadataSection> sections) 32foreach (MetadataSection section in sections) 37public Collection<MetadataSection> MetadataSections 295global::System.Collections.ObjectModel.Collection<global::System.ServiceModel.Description.MetadataSection> a = (global::System.Collections.ObjectModel.Collection<global::System.ServiceModel.Description.MetadataSection>)o.@MetadataSections; 300Write66_MetadataSection(@"MetadataSection", @"http://schemas.xmlsoap.org/ws/2004/09/mex", ((global::System.ServiceModel.Description.MetadataSection)a[ia]), false, false); 310private void Write66_MetadataSection(string n, string ns, global::System.ServiceModel.Description.MetadataSection o, bool isNullable, bool needType) 320if (t == typeof(global::System.ServiceModel.Description.MetadataSection)) 470global::System.Collections.ObjectModel.Collection<global::System.ServiceModel.Description.MetadataSection> a_0 = (global::System.Collections.ObjectModel.Collection<global::System.ServiceModel.Description.MetadataSection>)o.@MetadataSections; 516private global::System.ServiceModel.Description.MetadataSection Read66_MetadataSection(bool isNullable, bool checkType) 530global::System.ServiceModel.Description.MetadataSection o;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (2)
134set.MetadataSections.Add(MetadataSection.CreateFromServiceDescription(wsdl)); 137set.MetadataSections.Add(MetadataSection.CreateFromSchema(schema));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (11)
590private void ProcessMetadataDocuments(IEnumerable<MetadataSection> metadataSections) 592foreach (MetadataSection doc in metadataSections) 599if (doc.Dialect == MetadataSection.ServiceDescriptionDialect) 603if (doc.Dialect == MetadataSection.XmlSchemaDialect) 607if (doc.Dialect == MetadataSection.PolicyDialect) 629private T TryConvert<T>(MetadataSection doc) 1135if (node is XmlElement && MetadataSection.IsPolicyElement((XmlElement)node)) 1565internal static IEnumerable<MetadataSection> CreateMetadataDocuments(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, IEnumerable<XmlElement> policyDocuments) 1569yield return MetadataSection.CreateFromServiceDescription(wsdl); 1573yield return MetadataSection.CreateFromSchema(schema); 1577yield return MetadataSection.CreateFromPolicy(policyDocument, null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2340foreach (MetadataSection section in metadataSet.MetadataSections)
Metadata\MetadaExchangeResolver.cs (1)
86public async Task<IEnumerable<MetadataSection>> ResolveMetadataAsync(CancellationToken cancellationToken)
Metadata\MetadataDocumentLoader.cs (12)
63private readonly List<MetadataSection> _metadataSections = new List<MetadataSection>(); 64public IEnumerable<MetadataSection> MetadataSections { get { return _metadataSections; } } 321_metadataSections.Add(MetadataSection.CreateFromSchema(schema)); 368_metadataSections.Add(MetadataSection.CreateFromServiceDescription(wsdl)); 415_metadataSections.Add(MetadataSection.CreateFromPolicy(policy, null)); 434IEnumerable<MetadataSection> resolvedMetadata = await resolver.ResolveMetadataAsync(cancellationToken).ConfigureAwait(false); 574private static void FixupChameleonSchemas(IEnumerable<MetadataSection> metadataSections) 632foreach (var section in _metadataSections) 634if (section.Dialect == MetadataSection.ServiceDescriptionDialect) 648if (section.Dialect == MetadataSection.XmlSchemaDialect) 675protected string GetSourceUrl(MetadataSection section)
Metadata\MetadataDocumentSaver.cs (7)
38private MetadataDocumentSaver(string directoryPath, IEnumerable<MetadataSection> documents, MetadataFileNamingConvention namingConvention) 49public static async Task<SaveResult> SaveMetadataAsync(string directoryPath, IEnumerable<MetadataSection> documents, CancellationToken cancellationToken) 54public static async Task<SaveResult> SaveMetadataAsync(string directoryPath, IEnumerable<MetadataSection> documents, MetadataFileNamingConvention namingConvention, bool overwrite, CancellationToken cancellationToken) 93private void AddMetadataFiles(IEnumerable<MetadataSection> documents) 101foreach (var doc in documents) 110foreach (var doc in documents) 333if (dialect == MetadataSection.PolicyDialect)
Metadata\ServiceDescriptor.cs (3)
79public IEnumerable<MetadataSection> MetadataDocuments 140(this.metadataDocumentLoader.MetadataSections as List<MetadataSection>).AddRange(newSet.MetadataSections); 342protected virtual IEnumerable<MetadataSection> GetImportableMetadataSections()