Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / ServiceModelSectionGroup.cs / 1 / ServiceModelSectionGroup.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel.Channels; using System.ServiceModel; public sealed class ServiceModelSectionGroup : ConfigurationSectionGroup { public ServiceModelSectionGroup() {} public BehaviorsSection Behaviors { get {return (BehaviorsSection) this.Sections[ConfigurationStrings.BehaviorsSectionName]; } } public BindingsSection Bindings { get {return (BindingsSection) this.Sections[ConfigurationStrings.BindingsSectionGroupName]; } } public ClientSection Client { get {return (ClientSection) this.Sections[ConfigurationStrings.ClientSectionName]; } } public ComContractsSection ComContracts { get {return (ComContractsSection) this.Sections[ConfigurationStrings.ComContractsSectionName]; } } public CommonBehaviorsSection CommonBehaviors { get {return (CommonBehaviorsSection) this.Sections[ConfigurationStrings.CommonBehaviorsSectionName]; } } public DiagnosticSection Diagnostic { get {return (DiagnosticSection) this.Sections[ConfigurationStrings.DiagnosticSectionName]; } } public ServiceHostingEnvironmentSection ServiceHostingEnvironment { get {return (ServiceHostingEnvironmentSection) this.Sections[ConfigurationStrings.ServiceHostingEnvironmentSectionName]; } } public ExtensionsSection Extensions { get { return (ExtensionsSection)this.Sections[ConfigurationStrings.Extensions]; } } public ServicesSection Services { get {return (ServicesSection) this.Sections[ConfigurationStrings.ServicesSectionName]; } } public static ServiceModelSectionGroup GetSectionGroup(Configuration config) { if (config == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("config"); } #pragma warning suppress 56506 //[....]; config.SectionGroups can never be null (underlying configuration system guarantees) return (ServiceModelSectionGroup) config.SectionGroups[ConfigurationStrings.SectionGroupName]; } } } // 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
- KeyedCollection.cs
- ErrorFormatter.cs
- PackageRelationshipSelector.cs
- LocalizedNameDescriptionPair.cs
- CompilationUtil.cs
- MetadataCollection.cs
- CodeAttributeArgumentCollection.cs
- HttpFileCollection.cs
- FunctionImportElement.cs
- LinkUtilities.cs
- AbandonedMutexException.cs
- ActivityPreviewDesigner.cs
- HwndProxyElementProvider.cs
- InvalidPrinterException.cs
- XmlLinkedNode.cs
- InitializationEventAttribute.cs
- SvcFileManager.cs
- XmlSchemaException.cs
- DependencyObject.cs
- MaterializeFromAtom.cs
- CacheEntry.cs
- SimpleHandlerBuildProvider.cs
- ChildrenQuery.cs
- SynchronizedInputHelper.cs
- RegionIterator.cs
- DataColumnMappingCollection.cs
- DeclarativeExpressionConditionDeclaration.cs
- Metafile.cs
- ResourceContainer.cs
- ToggleButtonAutomationPeer.cs
- WebPartsSection.cs
- DLinqAssociationProvider.cs
- XmlSchemaSimpleTypeList.cs
- NativeObjectSecurity.cs
- CodeAttributeArgumentCollection.cs
- SystemFonts.cs
- KeyBinding.cs
- ItemCollection.cs
- UserControl.cs
- IntegrationExceptionEventArgs.cs
- FigureParaClient.cs
- Types.cs
- RowParagraph.cs
- TextChangedEventArgs.cs
- XmlLinkedNode.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- ConfigurationValidatorBase.cs
- WindowsListBox.cs
- XmlImplementation.cs
- TypeLibConverter.cs
- PiiTraceSource.cs
- Label.cs
- GradientStop.cs
- DataGridViewDesigner.cs
- DivideByZeroException.cs
- ExpressionBuilder.cs
- TakeOrSkipWhileQueryOperator.cs
- HttpCacheParams.cs
- WebFaultException.cs
- ChangeConflicts.cs
- IntellisenseTextBox.cs
- ConversionContext.cs
- CancellationState.cs
- InlinedAggregationOperator.cs
- VisualTreeHelper.cs
- OracleLob.cs
- ParagraphVisual.cs
- DynamicValidator.cs
- UrlAuthFailedErrorFormatter.cs
- AuthenticationConfig.cs
- RadioButtonAutomationPeer.cs
- CharacterBufferReference.cs
- ApplicationServiceManager.cs
- SystemIPInterfaceProperties.cs
- StateWorkerRequest.cs
- PtsContext.cs
- ProjectedWrapper.cs
- Point3D.cs
- DocumentViewerConstants.cs
- ClientBuildManager.cs
- TextBoxRenderer.cs
- FieldBuilder.cs
- RadioButtonStandardAdapter.cs
- figurelengthconverter.cs
- LinqDataSourceView.cs
- RtfToXamlLexer.cs
- TemplatedEditableDesignerRegion.cs
- FtpRequestCacheValidator.cs
- AppDomainCompilerProxy.cs
- EtwTrackingBehavior.cs
- ISessionStateStore.cs
- DeviceContexts.cs
- DataGridViewColumnEventArgs.cs
- RegisteredArrayDeclaration.cs
- AttributeEmitter.cs
- XmlILIndex.cs
- WorkflowRuntimeService.cs
- DataServiceRequestOfT.cs
- TrackingMemoryStream.cs
- Constant.cs