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
- ToolStripItemClickedEventArgs.cs
- RIPEMD160Managed.cs
- ToolstripProfessionalRenderer.cs
- XpsPackagingException.cs
- DataTableExtensions.cs
- cookiecontainer.cs
- TextReader.cs
- ProfileSettingsCollection.cs
- X509ChainElement.cs
- WindowClosedEventArgs.cs
- TableParaClient.cs
- IisTraceListener.cs
- ConfigXmlReader.cs
- BCLDebug.cs
- TableAutomationPeer.cs
- ByteAnimationUsingKeyFrames.cs
- SemanticBasicElement.cs
- DBDataPermissionAttribute.cs
- NoResizeHandleGlyph.cs
- IntegrationExceptionEventArgs.cs
- FixedFlowMap.cs
- UnsafeNativeMethods.cs
- PackageFilter.cs
- ChildDocumentBlock.cs
- StrokeFIndices.cs
- TypeAccessException.cs
- OdbcConnectionPoolProviderInfo.cs
- WebSysDescriptionAttribute.cs
- ClusterRegistryConfigurationProvider.cs
- BindingMAnagerBase.cs
- DateTimeFormat.cs
- CollaborationHelperFunctions.cs
- WindowsAuthenticationModule.cs
- DecimalKeyFrameCollection.cs
- RegistryDataKey.cs
- ResourceAssociationSet.cs
- ToolTip.cs
- MediaContext.cs
- UnsafeNativeMethods.cs
- PackWebRequest.cs
- IISMapPath.cs
- PropertyMapper.cs
- Baml2006KnownTypes.cs
- Point3DAnimation.cs
- SafeBitVector32.cs
- IntSecurity.cs
- KnownTypesProvider.cs
- COAUTHINFO.cs
- OracleColumn.cs
- UriScheme.cs
- ElementAction.cs
- WrapPanel.cs
- Deflater.cs
- ClickablePoint.cs
- ActivityValidationServices.cs
- XmlTextReaderImplHelpers.cs
- SqlConnectionStringBuilder.cs
- TextProperties.cs
- WsatExtendedInformation.cs
- RegistryConfigurationProvider.cs
- CellLabel.cs
- StringExpressionSet.cs
- ReadOnlyTernaryTree.cs
- HwndSourceParameters.cs
- IPCCacheManager.cs
- CodeDelegateInvokeExpression.cs
- Parallel.cs
- InkCanvasAutomationPeer.cs
- Comparer.cs
- DataRelationCollection.cs
- AutoResizedEvent.cs
- LinqDataSource.cs
- CommandLineParser.cs
- ActionFrame.cs
- ServiceNameElement.cs
- PolygonHotSpot.cs
- MessageFilterTable.cs
- FileDataSourceCache.cs
- HttpBufferlessInputStream.cs
- CompressedStack.cs
- AlternateViewCollection.cs
- DataStreamFromComStream.cs
- objectquery_tresulttype.cs
- SystemTcpStatistics.cs
- Timer.cs
- FilteredAttributeCollection.cs
- IfElseDesigner.xaml.cs
- TabControlEvent.cs
- AuthenticatingEventArgs.cs
- QueryRelOp.cs
- TemplatePagerField.cs
- CustomErrorsSectionWrapper.cs
- UnionCqlBlock.cs
- SecurityPermission.cs
- CreateUserWizardStep.cs
- Activity.cs
- SelectionWordBreaker.cs
- BitmapEffectOutputConnector.cs
- WeakReadOnlyCollection.cs
- CompilationRelaxations.cs