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
- Route.cs
- WebPartZoneCollection.cs
- PlatformCulture.cs
- HasCopySemanticsAttribute.cs
- LOSFormatter.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- RelationshipWrapper.cs
- HtmlFormParameterReader.cs
- CompoundFileReference.cs
- ApplicationTrust.cs
- NetCodeGroup.cs
- BamlTreeNode.cs
- EncoderNLS.cs
- ConfigurationLockCollection.cs
- QuotedPairReader.cs
- TextRangeProviderWrapper.cs
- validationstate.cs
- SqlTriggerAttribute.cs
- DataGridViewComboBoxColumn.cs
- XmlNodeComparer.cs
- PtsContext.cs
- DataGridHelper.cs
- Item.cs
- KeyValueConfigurationCollection.cs
- x509utils.cs
- configsystem.cs
- SqlOuterApplyReducer.cs
- WebColorConverter.cs
- dataprotectionpermission.cs
- SQLBoolean.cs
- TypedTableGenerator.cs
- IApplicationTrustManager.cs
- MDIControlStrip.cs
- AmbientValueAttribute.cs
- CreatingCookieEventArgs.cs
- GlyphElement.cs
- XmlConverter.cs
- DataGrid.cs
- MemberJoinTreeNode.cs
- LinqDataSource.cs
- Point3DAnimationBase.cs
- MD5CryptoServiceProvider.cs
- ContextProperty.cs
- AuthorizationContext.cs
- InvalidDocumentContentsException.cs
- SQLByte.cs
- EntityTransaction.cs
- MessagePropertyDescription.cs
- SpecialFolderEnumConverter.cs
- SQLInt32.cs
- SecurityException.cs
- SchemaElementLookUpTableEnumerator.cs
- TreeView.cs
- DockAndAnchorLayout.cs
- Base64Encoding.cs
- _AutoWebProxyScriptWrapper.cs
- EmptyCollection.cs
- SqlXmlStorage.cs
- TableCell.cs
- NameGenerator.cs
- PropertyTabAttribute.cs
- ClientConvert.cs
- DoubleCollectionValueSerializer.cs
- WindowsRichEditRange.cs
- httpserverutility.cs
- FreezableCollection.cs
- UpdateTracker.cs
- DataGridItemEventArgs.cs
- ReferenceSchema.cs
- AuthenticatingEventArgs.cs
- GridViewDeletedEventArgs.cs
- MouseDevice.cs
- ColumnCollection.cs
- LongValidatorAttribute.cs
- TraceSection.cs
- MediaTimeline.cs
- Normalizer.cs
- TimersDescriptionAttribute.cs
- PropertyGeneratedEventArgs.cs
- Int16AnimationUsingKeyFrames.cs
- ClientConfigPaths.cs
- MessageBox.cs
- GridViewSelectEventArgs.cs
- DependencyStoreSurrogate.cs
- ObjectDisposedException.cs
- GeneratedContractType.cs
- SortableBindingList.cs
- XmlDocumentFieldSchema.cs
- KeySpline.cs
- DuplexSecurityProtocolFactory.cs
- OperationAbortedException.cs
- ConfigurationManagerHelper.cs
- ListViewItem.cs
- DataObjectSettingDataEventArgs.cs
- BinaryObjectWriter.cs
- GraphicsPathIterator.cs
- OdbcEnvironment.cs
- XsltOutput.cs
- FlowStep.cs
- ExcludePathInfo.cs