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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebConfigurationHost.cs
- XsdBuildProvider.cs
- Constants.cs
- LambdaCompiler.Expressions.cs
- CharUnicodeInfo.cs
- ListItemCollection.cs
- BamlWriter.cs
- PrimarySelectionGlyph.cs
- DataServiceProcessingPipelineEventArgs.cs
- ExternalCalls.cs
- TimeSpan.cs
- JsonDeserializer.cs
- AssemblyBuilder.cs
- Environment.cs
- behaviorssection.cs
- DelegateSerializationHolder.cs
- ConfigurationSchemaErrors.cs
- Permission.cs
- CodeNamespace.cs
- httpapplicationstate.cs
- CodeTypeConstructor.cs
- XmlSchemaObject.cs
- ObjectIDGenerator.cs
- InputScope.cs
- DataGridViewHitTestInfo.cs
- GPStream.cs
- DocumentApplication.cs
- WebPartAuthorizationEventArgs.cs
- DeleteMemberBinder.cs
- BaseHashHelper.cs
- MailMessageEventArgs.cs
- HandleExceptionArgs.cs
- ListViewInsertionMark.cs
- ProxyElement.cs
- DependencyPropertyKind.cs
- MessageSecurityOverMsmqElement.cs
- XmlSchemaSimpleTypeList.cs
- SettingsBindableAttribute.cs
- EmptyEnumerator.cs
- AuthStoreRoleProvider.cs
- ErrorFormatterPage.cs
- SimpleExpression.cs
- DuplicateMessageDetector.cs
- OleDbParameterCollection.cs
- HtmlValidationSummaryAdapter.cs
- InputReportEventArgs.cs
- PeerNameRegistration.cs
- PropertyInfoSet.cs
- ObjectViewEntityCollectionData.cs
- BulletChrome.cs
- CapabilitiesRule.cs
- HtmlImage.cs
- CollectionViewGroupInternal.cs
- LocalIdKeyIdentifierClause.cs
- WaitForChangedResult.cs
- GZipStream.cs
- ShadowGlyph.cs
- PageHandlerFactory.cs
- TextTrailingCharacterEllipsis.cs
- CharUnicodeInfo.cs
- BehaviorEditorPart.cs
- ProtocolsSection.cs
- ListViewItemMouseHoverEvent.cs
- GreenMethods.cs
- ClientBuildManager.cs
- SyncOperationState.cs
- NegationPusher.cs
- ToolStripOverflow.cs
- OdbcConnectionFactory.cs
- WebPartZoneBase.cs
- TextHintingModeValidation.cs
- FeedUtils.cs
- FileFormatException.cs
- Stacktrace.cs
- ObjectHelper.cs
- DefaultPropertiesToSend.cs
- RegistryExceptionHelper.cs
- SelectionItemPattern.cs
- ActiveXHelper.cs
- ImageMap.cs
- OpenFileDialog.cs
- OleDbSchemaGuid.cs
- PixelFormatConverter.cs
- IsolatedStorageFilePermission.cs
- BitmapPalettes.cs
- CollectionViewSource.cs
- WebPartMovingEventArgs.cs
- COM2Properties.cs
- MultiView.cs
- DoubleLinkListEnumerator.cs
- COM2ExtendedBrowsingHandler.cs
- PartialClassGenerationTask.cs
- Renderer.cs
- TokenBasedSet.cs
- WindowsSecurityToken.cs
- OdbcInfoMessageEvent.cs
- infer.cs
- ItemType.cs
- TextMetrics.cs
- PrivateUnsafeNativeCompoundFileMethods.cs