Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / ClientSection.cs / 1 / ClientSection.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel.Channels; using System.Globalization; using System.Reflection; using System.Security; public sealed partial class ClientSection : ConfigurationSection, IConfigurationContextProviderInternal { public ClientSection() { } [ConfigurationProperty(ConfigurationStrings.DefaultCollectionName, Options = ConfigurationPropertyOptions.IsDefaultCollection)] public ChannelEndpointElementCollection Endpoints { get {return (ChannelEndpointElementCollection) this[ConfigurationStrings.DefaultCollectionName]; } } [ConfigurationProperty(ConfigurationStrings.Metadata)] public MetadataElement Metadata { get {return (MetadataElement) this[ConfigurationStrings.Metadata]; } } internal static ClientSection GetSection() { return (ClientSection)ConfigurationHelpers.GetSection(ConfigurationStrings.ClientSectionPath); } ////// Critical - calls Critical method UnsafeGetSection which elevates in order to fetch config /// caller must guard access to resultant config section /// [SecurityCritical] internal static ClientSection UnsafeGetSection() { return (ClientSection)ConfigurationHelpers.UnsafeGetSection(ConfigurationStrings.ClientSectionPath); } protected override void InitializeDefault() { this.Metadata.SetDefaults(); } protected override void PostDeserialize() { this.ValidateSection(); base.PostDeserialize(); } void ValidateSection() { ContextInformation context = ConfigurationHelpers.GetEvaluationContext(this); if (context != null) { foreach (ChannelEndpointElement endpoint in this.Endpoints) { BehaviorsSection.ValidateEndpointBehaviorReference(endpoint.BehaviorConfiguration, context, endpoint); BindingsSection.ValidateBindingReference(endpoint.Binding, endpoint.BindingConfiguration, context, endpoint); } } } ContextInformation IConfigurationContextProviderInternal.GetEvaluationContext() { return this.EvaluationContext; } ////// RequiresReview - the return value will be used for a security decision -- see comment in interface definition /// ContextInformation IConfigurationContextProviderInternal.GetOriginalEvaluationContext() { DiagnosticUtility.DebugAssert("Not implemented: IConfigurationContextProviderInternal.GetOriginalEvaluationContext"); return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NonNullItemCollection.cs
- SqlRowUpdatingEvent.cs
- CatalogZone.cs
- FunctionNode.cs
- SparseMemoryStream.cs
- Image.cs
- Effect.cs
- RoutedEventArgs.cs
- HostingEnvironment.cs
- ProfessionalColors.cs
- XmlNotation.cs
- WebConfigurationManager.cs
- COM2Enum.cs
- PriorityQueue.cs
- ButtonFlatAdapter.cs
- AsyncStreamReader.cs
- SmiEventSink_DeferedProcessing.cs
- Separator.cs
- SpecularMaterial.cs
- AbstractExpressions.cs
- Shape.cs
- BrowsableAttribute.cs
- PropertyInfoSet.cs
- TemplateNameScope.cs
- ClassicBorderDecorator.cs
- InternalTransaction.cs
- DetailsViewPageEventArgs.cs
- RawAppCommandInputReport.cs
- ProxyWebPartConnectionCollection.cs
- SystemWebExtensionsSectionGroup.cs
- WebHttpBehavior.cs
- storagemappingitemcollection.viewdictionary.cs
- SqlReferenceCollection.cs
- HtmlInputPassword.cs
- ResourcePermissionBaseEntry.cs
- ProxySimple.cs
- PropertyInformationCollection.cs
- ModuleConfigurationInfo.cs
- DrawingCollection.cs
- EndpointIdentity.cs
- LayoutTableCell.cs
- COM2FontConverter.cs
- ListItemParagraph.cs
- Padding.cs
- DataGridViewImageCell.cs
- OperationDescription.cs
- AutomationPatternInfo.cs
- MessagePartProtectionMode.cs
- TimeZone.cs
- FormViewCommandEventArgs.cs
- StandardToolWindows.cs
- DSASignatureDeformatter.cs
- ZipIOLocalFileDataDescriptor.cs
- ImageField.cs
- AuthorizationRuleCollection.cs
- TimeStampChecker.cs
- WindowsStatic.cs
- XamlRtfConverter.cs
- Rijndael.cs
- SafeLocalMemHandle.cs
- PersonalizablePropertyEntry.cs
- BamlRecordHelper.cs
- AxisAngleRotation3D.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ListControlConvertEventArgs.cs
- ToolStripSeparator.cs
- ImageListImage.cs
- JsonReaderDelegator.cs
- ActivityMetadata.cs
- QueryStringParameter.cs
- TiffBitmapEncoder.cs
- CompatibleIComparer.cs
- DataTrigger.cs
- EntityDataSourceMemberPath.cs
- ReadWriteSpinLock.cs
- KeyPullup.cs
- SqlCrossApplyToCrossJoin.cs
- odbcmetadatafactory.cs
- Int64AnimationUsingKeyFrames.cs
- TextLine.cs
- XamlSerializerUtil.cs
- ConfigXmlElement.cs
- ComponentDispatcher.cs
- PasswordTextContainer.cs
- Attributes.cs
- NoneExcludedImageIndexConverter.cs
- PathGeometry.cs
- DesignerSerializerAttribute.cs
- InfoCardConstants.cs
- ProfilePropertySettingsCollection.cs
- MediaCommands.cs
- SqlCommandBuilder.cs
- DefaultEvaluationContext.cs
- DataTable.cs
- ErrorLog.cs
- OracleCommandBuilder.cs
- TypeUtils.cs
- InfoCard.cs
- MouseGestureConverter.cs
- HyperLinkColumn.cs