Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Routing / System / ServiceModel / Routing / RoutingConfiguration.cs / 1305376 / RoutingConfiguration.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Routing { using System.Collections.Generic; using System.Configuration; using System.Diagnostics.CodeAnalysis; using System.Runtime; using System.ServiceModel.Description; using System.ServiceModel.Dispatcher; [Fx.Tag.XamlVisible(false)] public sealed class RoutingConfiguration { internal const bool DefaultRouteOnHeadersOnly = true; internal const bool DefaultSoapProcessingEnabled = true; bool configured; MessageFilterTable> filterTable; public RoutingConfiguration() : this(new MessageFilterTable >(), DefaultRouteOnHeadersOnly) { this.configured = false; } public RoutingConfiguration (MessageFilterTable > filterTable, bool routeOnHeadersOnly) { if (filterTable == null) { throw FxTrace.Exception.ArgumentNull("filterTable"); } this.configured = true; //User handed us the FilterTable, assume it's valid/configured this.filterTable = filterTable; this.RouteOnHeadersOnly = routeOnHeadersOnly; this.SoapProcessingEnabled = DefaultSoapProcessingEnabled; } public MessageFilterTable > FilterTable { get { this.configured = true; return this.filterTable; } } internal MessageFilterTable > InternalFilterTable { get { return this.filterTable; } } public bool RouteOnHeadersOnly { get; set; } public bool SoapProcessingEnabled { get; set; } [SuppressMessage(FxCop.Category.Performance, FxCop.Rule.AvoidUncalledPrivateCode, Justification = "This gets called in RoutingService..ctor")] internal void VerifyConfigured() { if (!this.configured) { throw FxTrace.Exception.AsError(new ConfigurationErrorsException(SR.RoutingTableNotConfigured)); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolStripContentPanelDesigner.cs
- CodeStatement.cs
- QueryCacheManager.cs
- DesignerPerfEventProvider.cs
- OutKeywords.cs
- PeerNameResolver.cs
- SessionStateContainer.cs
- Pair.cs
- CodeSubDirectoriesCollection.cs
- SupportsEventValidationAttribute.cs
- ParameterCollectionEditorForm.cs
- OleDbException.cs
- TextServicesManager.cs
- DataSourceDescriptorCollection.cs
- DataPointer.cs
- SystemDiagnosticsSection.cs
- MetadataFile.cs
- ContainerParaClient.cs
- PieceNameHelper.cs
- CfgSemanticTag.cs
- Domain.cs
- XPathBinder.cs
- WindowsIPAddress.cs
- WsrmFault.cs
- EntityDataSourceContextCreatingEventArgs.cs
- StringAnimationBase.cs
- UITypeEditor.cs
- CryptographicAttribute.cs
- Light.cs
- RootCodeDomSerializer.cs
- EntityDataSourceReferenceGroup.cs
- TextModifierScope.cs
- MergeFailedEvent.cs
- CookielessData.cs
- PersonalizableTypeEntry.cs
- HandlerWithFactory.cs
- ColorDialog.cs
- JpegBitmapDecoder.cs
- EventLogPermissionAttribute.cs
- AnnotationComponentChooser.cs
- PackageDigitalSignatureManager.cs
- SchemaSetCompiler.cs
- AddDataControlFieldDialog.cs
- DiscriminatorMap.cs
- FieldAccessException.cs
- PeerApplicationLaunchInfo.cs
- StringFreezingAttribute.cs
- ComponentCommands.cs
- ScriptingRoleServiceSection.cs
- ObjectDataSourceEventArgs.cs
- WebPartHeaderCloseVerb.cs
- TransformedBitmap.cs
- MembershipSection.cs
- DriveInfo.cs
- WebEvents.cs
- ProviderException.cs
- ScriptDescriptor.cs
- SqlCacheDependencyDatabaseCollection.cs
- WindowsFormsHostAutomationPeer.cs
- ECDiffieHellman.cs
- ScaleTransform.cs
- PageContent.cs
- Int32KeyFrameCollection.cs
- CodeMemberField.cs
- XmlSchemaExporter.cs
- FilterQuery.cs
- QualifiedCellIdBoolean.cs
- Interlocked.cs
- OracleDataReader.cs
- ColumnTypeConverter.cs
- VisualStyleTypesAndProperties.cs
- DeclarativeCatalogPartDesigner.cs
- DoubleLinkListEnumerator.cs
- LineUtil.cs
- ReaderWriterLock.cs
- DataMemberFieldEditor.cs
- URI.cs
- TemplateNameScope.cs
- WebControlsSection.cs
- CreatingCookieEventArgs.cs
- OLEDB_Enum.cs
- HttpPostProtocolReflector.cs
- XamlBrushSerializer.cs
- _CookieModule.cs
- DesignTable.cs
- XmlSchemaAttribute.cs
- TailCallAnalyzer.cs
- IteratorAsyncResult.cs
- FixedSOMPageConstructor.cs
- EnvironmentPermission.cs
- TextProperties.cs
- ChannelManager.cs
- Parser.cs
- SizeAnimationUsingKeyFrames.cs
- BaseParser.cs
- HtmlWindow.cs
- RightsController.cs
- WebPartZoneCollection.cs
- FormsAuthenticationConfiguration.cs
- InlinedAggregationOperator.cs