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
- ChannelSinkStacks.cs
- RemoteWebConfigurationHostStream.cs
- MenuItemBinding.cs
- EncoderParameter.cs
- XsltOutput.cs
- HtmlInputText.cs
- GroupDescription.cs
- DataContractSerializer.cs
- SqlRecordBuffer.cs
- DataGridViewTextBoxColumn.cs
- ValidatedControlConverter.cs
- MetadataArtifactLoaderCompositeFile.cs
- DocumentXmlWriter.cs
- UrlMappingsModule.cs
- Triangle.cs
- TransformerInfoCollection.cs
- DXD.cs
- TextServicesHost.cs
- ButtonRenderer.cs
- TextContainerChangedEventArgs.cs
- ThreadSafeList.cs
- UnsafeNetInfoNativeMethods.cs
- Comparer.cs
- FactoryGenerator.cs
- NavigationWindow.cs
- HwndAppCommandInputProvider.cs
- DBNull.cs
- dbenumerator.cs
- StrongNameMembershipCondition.cs
- MetadataCacheItem.cs
- XmlComment.cs
- BorderGapMaskConverter.cs
- BindingUtils.cs
- GPRECT.cs
- XPathScanner.cs
- NetworkCredential.cs
- shaper.cs
- CheckBoxStandardAdapter.cs
- ToolStripPanelCell.cs
- XmlAttributeProperties.cs
- ArithmeticException.cs
- CommandBinding.cs
- HtmlTableCellCollection.cs
- IncrementalReadDecoders.cs
- FontInfo.cs
- CodeAccessSecurityEngine.cs
- DmlSqlGenerator.cs
- SplineKeyFrames.cs
- DefaultTextStoreTextComposition.cs
- FixedSOMSemanticBox.cs
- SafeThreadHandle.cs
- PartialCachingControl.cs
- SigningCredentials.cs
- NotifyIcon.cs
- XmlCharCheckingWriter.cs
- XmlName.cs
- LinearKeyFrames.cs
- SafeEventLogWriteHandle.cs
- HttpPostedFileBase.cs
- BamlResourceDeserializer.cs
- XPathScanner.cs
- HMACMD5.cs
- securestring.cs
- Hyperlink.cs
- DrawingServices.cs
- WriteableBitmap.cs
- PathFigure.cs
- ConfigurationCollectionAttribute.cs
- querybuilder.cs
- BaseAddressElementCollection.cs
- ProfileGroupSettings.cs
- IsolatedStorageFile.cs
- DesignerVerb.cs
- _NegoState.cs
- ClientFormsIdentity.cs
- WizardForm.cs
- ForeignKeyConstraint.cs
- StorageEntityContainerMapping.cs
- BitmapMetadata.cs
- ApplicationManager.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- RemotingServices.cs
- ping.cs
- Propagator.Evaluator.cs
- EntityDataSourceWrapperCollection.cs
- PkcsUtils.cs
- CryptoApi.cs
- MimeAnyImporter.cs
- ListParaClient.cs
- GenericPrincipal.cs
- ByteStream.cs
- WsatAdminException.cs
- WebPartCatalogCloseVerb.cs
- TextEditorTyping.cs
- RSACryptoServiceProvider.cs
- WebUtility.cs
- TableColumn.cs
- SqlReferenceCollection.cs
- PreviewPrintController.cs
- SpeechDetectedEventArgs.cs