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
- LayoutManager.cs
- TextPointer.cs
- WsdlBuildProvider.cs
- ResponseBodyWriter.cs
- EmptyControlCollection.cs
- HttpCacheParams.cs
- Validator.cs
- IdnMapping.cs
- GridViewItemAutomationPeer.cs
- Light.cs
- CounterSampleCalculator.cs
- BaseTypeViewSchema.cs
- SettingsPropertyValueCollection.cs
- Profiler.cs
- HttpServerVarsCollection.cs
- FlatButtonAppearance.cs
- VerifyHashRequest.cs
- TextBox.cs
- GeometryModel3D.cs
- ValidationErrorEventArgs.cs
- SignedPkcs7.cs
- MultiTrigger.cs
- MenuScrollingVisibilityConverter.cs
- InstanceLockQueryResult.cs
- IImplicitResourceProvider.cs
- BaseParser.cs
- PtsContext.cs
- PermissionListSet.cs
- ITreeGenerator.cs
- HttpApplicationFactory.cs
- XPathNodeInfoAtom.cs
- Control.cs
- DataBinding.cs
- DynamicHyperLink.cs
- WindowsEditBox.cs
- Accessible.cs
- WebPartsSection.cs
- XmlTextReaderImplHelpers.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DLinqAssociationProvider.cs
- DataGridViewAccessibleObject.cs
- documentsequencetextpointer.cs
- OutputCacheProfile.cs
- BCLDebug.cs
- SqlNotificationEventArgs.cs
- HtmlContainerControl.cs
- XmlAttributeProperties.cs
- DbParameterHelper.cs
- FontFamily.cs
- InstanceDescriptor.cs
- MulticastDelegate.cs
- ReferentialConstraintRoleElement.cs
- SparseMemoryStream.cs
- FtpWebResponse.cs
- StreamBodyWriter.cs
- TextSpanModifier.cs
- SystemColorTracker.cs
- QilFactory.cs
- ResourceProviderFactory.cs
- WebScriptMetadataMessage.cs
- WebPartZoneDesigner.cs
- ThaiBuddhistCalendar.cs
- HandleTable.cs
- ObjectDataProvider.cs
- SymbolEqualComparer.cs
- TextAdaptor.cs
- cookiecontainer.cs
- NavigateUrlConverter.cs
- CultureMapper.cs
- ContainerFilterService.cs
- PointAnimationUsingPath.cs
- CustomValidator.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- ToolZone.cs
- Utils.cs
- PrintPageEvent.cs
- HostedBindingBehavior.cs
- ValidatorUtils.cs
- EventLogPropertySelector.cs
- _SingleItemRequestCache.cs
- FixedMaxHeap.cs
- AssociationEndMember.cs
- PropertyIDSet.cs
- OverflowException.cs
- MemoryStream.cs
- SByte.cs
- DocumentEventArgs.cs
- PreviewPrintController.cs
- PropertyBuilder.cs
- SqlParameterizer.cs
- SrgsRuleRef.cs
- SiteMapNodeItemEventArgs.cs
- CollectionEditor.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ObjectAnimationUsingKeyFrames.cs
- XamlClipboardData.cs
- SystemSounds.cs
- Constraint.cs
- ErrorActivity.cs
- ChangeDirector.cs