11 instantiations of MetadataSection
System.ServiceModel (10)
System\ServiceModel\ComIntegration\MexServiceChannelBuilder.cs (1)
446
MetadataSection mexDoc = new
MetadataSection
();
System\ServiceModel\Description\MetadataExchangeClient.cs (3)
615
MetadataSection schemaSection = new
MetadataSection
(null, null, schema);
688
section = new
MetadataSection
(MetadataSection.MetadataExchangeDialect, null, newSet);
707
section = new
MetadataSection
(null, null, doc.DocumentElement);
System\ServiceModel\Description\MetadataSection.cs (3)
99
MetadataSection section = new
MetadataSection
();
114
MetadataSection section = new
MetadataSection
();
129
MetadataSection section = new
MetadataSection
();
System\ServiceModel\Description\MetadataSet.cs (1)
532
o = new global::System.ServiceModel.Description.
MetadataSection
();
System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
543
MetadataSection metadataLocationSection = new
MetadataSection
(MetadataSection.ServiceDescriptionDialect, null, new MetadataLocation(location));
System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2290
metadataSet.MetadataSections.Add(new
MetadataSection
(null, null, new MetadataReference(issuerMetadataAddress, AddressingVersion.WSAddressing10)));
System.Web.Extensions (1)
Compilation\WCFModel\MetadataFile.cs (1)
708
metadataSection = new
MetadataSection
(null, null, metadata.MetadataXmlDocument.DocumentElement);
95 references to MetadataSection
System.ServiceModel (67)
System\ServiceModel\Administration\ServiceInfo.cs (1)
122
foreach (
MetadataSection
section in metadataExtension.Metadata.MetadataSections)
System\ServiceModel\ComIntegration\MexServiceChannelBuilder.cs (5)
434
metadataSet.MetadataSections.Add(
MetadataSection
.CreateFromServiceDescription(wsdl));
438
metadataSet.MetadataSections.Add(
MetadataSection
.CreateFromSchema(schema));
440
else if (xmlDoc != null &&
MetadataSection
.IsPolicyElement(xmlDoc))
442
metadataSet.MetadataSections.Add(
MetadataSection
.CreateFromPolicy(xmlDoc, null));
446
MetadataSection
mexDoc = new MetadataSection();
System\ServiceModel\Description\MetadataExchangeClient.cs (19)
528
internal void HandleSection(
MetadataSection
section)
532
foreach (
MetadataSection
innerSection in ((MetadataSet)section.Metadata).MetadataSections)
587
void HandleSchemaImports(
MetadataSection
section)
602
void HandleWsdlImports(
MetadataSection
section)
615
MetadataSection
schemaSection = new MetadataSection(null, null, schema);
658
internal
MetadataSection
Retrieve(TimeoutHelper timeoutHelper)
678
internal abstract
MetadataSection
EndRetrieve(IAsyncResult result);
680
static internal
MetadataSection
CreateMetadataSection(XmlReader reader, string sourceUrl)
682
MetadataSection
section = null;
688
section = new MetadataSection(
MetadataSection
.MetadataExchangeDialect, null, newSet);
694
section =
MetadataSection
.CreateFromServiceDescription(wsdl);
700
section =
MetadataSection
.CreateFromSchema(schema);
852
internal override
MetadataSection
EndRetrieve(IAsyncResult result)
875
MetadataSection
section;
910
internal static
MetadataSection
End(IAsyncResult result)
1098
internal override
MetadataSection
EndRetrieve(IAsyncResult result)
1126
MetadataSection
section;
1144
internal static
MetadataSection
End(IAsyncResult result)
1304
MetadataSection
section = retriever.EndRetrieve(result);
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;
System\ServiceModel\Description\MetadataSet.cs (14)
19
Collection<
MetadataSection
> sections = new Collection<
MetadataSection
>();
28
public MetadataSet(IEnumerable<
MetadataSection
> sections)
32
foreach (
MetadataSection
section in sections)
37
public Collection<
MetadataSection
> MetadataSections
296
global::System.Collections.ObjectModel.Collection<global::System.ServiceModel.Description.
MetadataSection
> a = (global::System.Collections.ObjectModel.Collection<global::System.ServiceModel.Description.
MetadataSection
>)o.@MetadataSections;
301
Write66_MetadataSection(@"MetadataSection", @"http://schemas.xmlsoap.org/ws/2004/09/mex", ((global::System.ServiceModel.Description.
MetadataSection
)a[ia]), false, false);
311
void Write66_MetadataSection(string n, string ns, global::System.ServiceModel.Description.
MetadataSection
o, bool isNullable, bool needType)
321
if (t == typeof(global::System.ServiceModel.Description.
MetadataSection
))
471
global::System.Collections.ObjectModel.Collection<global::System.ServiceModel.Description.
MetadataSection
> a_0 = (global::System.Collections.ObjectModel.Collection<global::System.ServiceModel.Description.
MetadataSection
>)o.@MetadataSections;
517
global::System.ServiceModel.Description.
MetadataSection
Read66_MetadataSection(bool isNullable, bool checkType)
531
global::System.ServiceModel.Description.
MetadataSection
o;
System\ServiceModel\Description\ServiceMetadataExtension.cs (5)
543
MetadataSection
metadataLocationSection = new MetadataSection(
MetadataSection
.ServiceDescriptionDialect, null, new MetadataLocation(location));
590
foreach (
MetadataSection
document in parent.Metadata.MetadataSections)
1153
foreach (
MetadataSection
section in metadata.MetadataSections)
1167
foreach (
MetadataSection
section in metadata.MetadataSections)
System\ServiceModel\Description\WsdlExporter.cs (2)
134
set.MetadataSections.Add(
MetadataSection
.CreateFromServiceDescription(wsdl));
137
set.MetadataSections.Add(
MetadataSection
.CreateFromSchema(schema));
System\ServiceModel\Description\WsdlHelper.cs (1)
31
foreach (
MetadataSection
section in metadataSet.MetadataSections)
System\ServiceModel\Description\WsdlImporter.cs (11)
590
void ProcessMetadataDocuments(IEnumerable<
MetadataSection
> metadataSections)
593
foreach (
MetadataSection
doc in metadataSections)
600
if (doc.Dialect ==
MetadataSection
.ServiceDescriptionDialect)
604
if (doc.Dialect ==
MetadataSection
.XmlSchemaDialect)
608
if (doc.Dialect ==
MetadataSection
.PolicyDialect)
630
T TryConvert<T>(
MetadataSection
doc)
1141
if (node is XmlElement &&
MetadataSection
.IsPolicyElement((XmlElement)node))
1576
internal static IEnumerable<
MetadataSection
> CreateMetadataDocuments(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, IEnumerable<XmlElement> policyDocuments)
1581
yield return
MetadataSection
.CreateFromServiceDescription(wsdl);
1585
yield return
MetadataSection
.CreateFromSchema(schema);
1589
yield return
MetadataSection
.CreateFromPolicy(policyDocument, null);
System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2340
foreach (
MetadataSection
section in metadataSet.MetadataSections)
System.Web.Extensions (28)
Compilation\WCFModel\MetadataFile.cs (7)
15
using MetadataSection = System.ServiceModel.Description.
MetadataSection
;
663
internal
MetadataSection
CreateMetadataSection()
671
MetadataSection
metadataSection = null;
680
metadataSection =
MetadataSection
.CreateFromServiceDescription(metadata.MetadataServiceDescription);
689
metadataSection =
MetadataSection
.CreateFromServiceDescription(description);
695
metadataSection =
MetadataSection
.CreateFromSchema(metadata.MetadataXmlSchema);
701
metadataSection =
MetadataSection
.CreateFromPolicy(metadata.MetadataXmlDocument.DocumentElement, null);
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (21)
1247
List<
MetadataSection
> metadataSections = CollectMetadataDocuments(svcMapFile.MetadataList, importErrors);
1425
protected static List<
MetadataSection
> CollectMetadataDocuments(IEnumerable<MetadataFile> metadataList, IList<ProxyGenerationError> importErrors)
1427
List<
MetadataSection
> metadataCollection = new List<
MetadataSection
>();
1435
MetadataSection
metadataSection = metadataItem.CreateMetadataSection();
1501
private static void RemoveDuplicatedSchemaItems(List<
MetadataSection
> metadataCollection, IList<ProxyGenerationError> importErrors)
1503
Dictionary<XmlSchema,
MetadataSection
> schemaList = new Dictionary<XmlSchema,
MetadataSection
>();
1506
foreach (
MetadataSection
metadataSection in metadataCollection)
1508
if (metadataSection.Dialect ==
MetadataSection
.XmlSchemaDialect)
1516
foreach (
MetadataSection
metadataSection in metadataCollection)
1518
if (metadataSection.Dialect ==
MetadataSection
.ServiceDescriptionDialect)
1538
MetadataSection
metadataSection = schemaList[schema];
1539
if (metadataSection.Dialect ==
MetadataSection
.XmlSchemaDialect)
1543
else if (metadataSection.Dialect ==
MetadataSection
.ServiceDescriptionDialect)
1556
private static void CheckDuplicatedWsdlItems(IList<
MetadataSection
> metadataCollection, IList<ProxyGenerationError> importErrors)
1559
foreach (
MetadataSection
metadataSection in metadataCollection)
1561
if (metadataSection.Dialect ==
MetadataSection
.ServiceDescriptionDialect)
1811
private static bool ContainsHttpBindings(IEnumerable<
MetadataSection
> metadataCollection)
1813
foreach (
MetadataSection
metadataSection in metadataCollection)
1815
if (metadataSection.Dialect ==
MetadataSection
.ServiceDescriptionDialect)