e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
54 lines
1.7 KiB
C#
54 lines
1.7 KiB
C#
//------------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.ServiceModel.Configuration
|
|
{
|
|
using System.Configuration;
|
|
using System.ServiceModel.Channels;
|
|
using System.ServiceModel.Description;
|
|
using System.Globalization;
|
|
using System.ServiceModel;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
|
|
public sealed partial class MetadataElement : ConfigurationElement
|
|
{
|
|
public MetadataElement()
|
|
{
|
|
}
|
|
|
|
|
|
[ConfigurationProperty(ConfigurationStrings.PolicyImporters)]
|
|
public PolicyImporterElementCollection PolicyImporters
|
|
{
|
|
get { return (PolicyImporterElementCollection)base[ConfigurationStrings.PolicyImporters]; }
|
|
}
|
|
|
|
[ConfigurationProperty(ConfigurationStrings.WsdlImporters)]
|
|
public WsdlImporterElementCollection WsdlImporters
|
|
{
|
|
get { return (WsdlImporterElementCollection)base[ConfigurationStrings.WsdlImporters]; }
|
|
}
|
|
|
|
public Collection<IWsdlImportExtension> LoadWsdlImportExtensions()
|
|
{
|
|
return ConfigLoader.LoadWsdlImporters(this.WsdlImporters, this.EvaluationContext);
|
|
}
|
|
|
|
public Collection<IPolicyImportExtension> LoadPolicyImportExtensions()
|
|
{
|
|
return ConfigLoader.LoadPolicyImporters(this.PolicyImporters, this.EvaluationContext);
|
|
}
|
|
|
|
internal void SetDefaults()
|
|
{
|
|
this.PolicyImporters.SetDefaults();
|
|
this.WsdlImporters.SetDefaults();
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|