Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / MsmqBindingFilter.cs / 1 / MsmqBindingFilter.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel.Channels { using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Net; using System.ServiceModel.Diagnostics; using System.Text; using System.Threading; using System.Web; using System.Web.Hosting; using System.Globalization; using System.ServiceModel.Activation; abstract class MsmqBindingFilter { string prefix; MsmqUri.IAddressTranslator addressing; public MsmqBindingFilter(string path, MsmqUri.IAddressTranslator addressing) { this.prefix = path; this.addressing = addressing; // Construct the canonical prefix. It's the // app name with no slashes at beginning or end: if(this.prefix.Length > 0 && this.prefix[0] == '/') { this.prefix = this.prefix.Substring(1); } if(this.prefix.Length > 0 && this.prefix[this.prefix.Length-1] != '/') { this.prefix = this.prefix + '/'; } } public string CanonicalPrefix { get { return this.prefix; } } public int Match(string name) { if(string.Compare(CanonicalPrefix, 0, name, 0, CanonicalPrefix.Length, StringComparison.OrdinalIgnoreCase) == 0) { return CanonicalPrefix.Length; } return -1; } public Uri CreateServiceUri(string host, string name, bool isPrivate) { return addressing.CreateUri(host, name, isPrivate); } public abstract object MatchFound(string host, string name, bool isPrivate); public abstract void MatchLost(string host, string name, bool isPrivate, object callbackState); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PointF.cs
- BamlCollectionHolder.cs
- StylusPointCollection.cs
- ConnectionConsumerAttribute.cs
- UncommonField.cs
- XmlSchemaObjectTable.cs
- ObjectTypeMapping.cs
- SecureEnvironment.cs
- StylusPlugin.cs
- Color.cs
- RefreshPropertiesAttribute.cs
- GetPageCompletedEventArgs.cs
- QilTypeChecker.cs
- EventsTab.cs
- CodeTypeParameterCollection.cs
- ConditionCollection.cs
- FieldInfo.cs
- Converter.cs
- SelectionProcessor.cs
- DataSourceXmlElementAttribute.cs
- LinkTarget.cs
- SingleAnimationUsingKeyFrames.cs
- UIPermission.cs
- UniformGrid.cs
- ShutDownListener.cs
- SingleObjectCollection.cs
- GeneralTransform3DCollection.cs
- AsyncContentLoadedEventArgs.cs
- MimeTypeAttribute.cs
- Listbox.cs
- WebPartConnection.cs
- Select.cs
- ReliableChannelFactory.cs
- DesignerActionPropertyItem.cs
- UriTemplateDispatchFormatter.cs
- HtmlUtf8RawTextWriter.cs
- ToolStripItemImageRenderEventArgs.cs
- assemblycache.cs
- StoryFragments.cs
- GeometryHitTestResult.cs
- SafeNativeMethodsOther.cs
- DataGridTextBoxColumn.cs
- RequestValidator.cs
- PDBReader.cs
- GeneralTransform3DCollection.cs
- AuthorizationSection.cs
- ContainerParagraph.cs
- OperationFormatStyle.cs
- TextBounds.cs
- AffineTransform3D.cs
- TreeWalkHelper.cs
- TextFormattingConverter.cs
- SqlInternalConnectionSmi.cs
- ObjectHelper.cs
- InputEventArgs.cs
- StrokeNodeOperations.cs
- MultiSelectRootGridEntry.cs
- QilReference.cs
- FollowerQueueCreator.cs
- Inflater.cs
- HeaderedItemsControl.cs
- BitmapEffectInputData.cs
- WindowAutomationPeer.cs
- IndexedString.cs
- PropVariant.cs
- DelayedRegex.cs
- Util.cs
- ScriptManagerProxy.cs
- DataGridViewCellLinkedList.cs
- Metadata.cs
- UndoManager.cs
- MetadataHelper.cs
- ServiceContractListItemList.cs
- RadioButton.cs
- DataServiceRequest.cs
- Propagator.JoinPropagator.cs
- DnsCache.cs
- SharedStream.cs
- XmlElementList.cs
- FormatConvertedBitmap.cs
- OdbcReferenceCollection.cs
- CalendarDay.cs
- DocumentSequence.cs
- ObfuscationAttribute.cs
- WeakEventTable.cs
- Cursor.cs
- SelectedGridItemChangedEvent.cs
- TextDecorationLocationValidation.cs
- SerializationObjectManager.cs
- TextEffectCollection.cs
- BooleanProjectedSlot.cs
- ObjectDataSourceStatusEventArgs.cs
- BaseProcessor.cs
- NameValuePermission.cs
- ProfileSettingsCollection.cs
- OutputCache.cs
- CodeTypeOfExpression.cs
- XsdBuildProvider.cs
- InternalsVisibleToAttribute.cs
- SpellerError.cs