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