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
- MarkupExtensionParser.cs
- Win32Exception.cs
- RTLAwareMessageBox.cs
- XmlExceptionHelper.cs
- WebControlsSection.cs
- AdornerDecorator.cs
- TimeSpanFormat.cs
- MenuBase.cs
- Component.cs
- CryptoConfig.cs
- HtmlMeta.cs
- AutomationPattern.cs
- COM2PictureConverter.cs
- X509ChainPolicy.cs
- MatrixAnimationUsingKeyFrames.cs
- WmlPageAdapter.cs
- DataGridCommandEventArgs.cs
- X509SecurityTokenProvider.cs
- TypeConverterHelper.cs
- BaseCodeDomTreeGenerator.cs
- SudsCommon.cs
- ObjectTypeMapping.cs
- MsmqPoisonMessageException.cs
- PageOutputColor.cs
- ContractMapping.cs
- InputLanguage.cs
- HttpListener.cs
- EncoderNLS.cs
- ColumnMap.cs
- ExcCanonicalXml.cs
- SmtpLoginAuthenticationModule.cs
- StylusButtonEventArgs.cs
- HandleCollector.cs
- IDReferencePropertyAttribute.cs
- HttpHandlerAction.cs
- SourceFileBuildProvider.cs
- MultiPageTextView.cs
- NullReferenceException.cs
- ErrorFormatter.cs
- GeometryDrawing.cs
- FormatException.cs
- NetworkCredential.cs
- _BaseOverlappedAsyncResult.cs
- Button.cs
- CodeTypeDeclarationCollection.cs
- XmlBoundElement.cs
- StateRuntime.cs
- BasePropertyDescriptor.cs
- LazyLoadBehavior.cs
- TextPenaltyModule.cs
- TransactionManager.cs
- IPPacketInformation.cs
- ServiceThrottlingElement.cs
- KeyPressEvent.cs
- ContractReference.cs
- DbMetaDataColumnNames.cs
- MarkupWriter.cs
- cookie.cs
- DataGridAutomationPeer.cs
- XmlSerializerImportOptions.cs
- DataColumnChangeEvent.cs
- WebPartEditorOkVerb.cs
- SqlDataSourceCommandEventArgs.cs
- LabelAutomationPeer.cs
- JsonEnumDataContract.cs
- WeakEventTable.cs
- MulticastOption.cs
- EntitySqlQueryCacheKey.cs
- PluralizationServiceUtil.cs
- RegistryConfigurationProvider.cs
- DiscardableAttribute.cs
- BaseParaClient.cs
- RuntimeResourceSet.cs
- ElementUtil.cs
- X509SubjectKeyIdentifierClause.cs
- XsltArgumentList.cs
- FloaterParaClient.cs
- CatalogPart.cs
- FixedHighlight.cs
- ActivityMarkupSerializer.cs
- EFAssociationProvider.cs
- Typeface.cs
- UrlEncodedParameterWriter.cs
- ScrollItemPattern.cs
- XMLSyntaxException.cs
- Authorization.cs
- TemplateControl.cs
- RegularExpressionValidator.cs
- CodeBlockBuilder.cs
- KoreanLunisolarCalendar.cs
- Activator.cs
- Brushes.cs
- Substitution.cs
- StdValidatorsAndConverters.cs
- AttributeEmitter.cs
- TextBlock.cs
- ObjectListComponentEditor.cs
- __ConsoleStream.cs
- AtlasWeb.Designer.cs
- AppDomain.cs