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
- ArrayWithOffset.cs
- PkcsUtils.cs
- iisPickupDirectory.cs
- ComponentChangedEvent.cs
- BufferedWebEventProvider.cs
- EditorZoneBase.cs
- ParameterBinding.cs
- Substitution.cs
- SqlUDTStorage.cs
- EntityContainerEntitySet.cs
- HttpCookiesSection.cs
- XmlWriter.cs
- ValidationPropertyAttribute.cs
- ComponentEditorPage.cs
- LinkedList.cs
- TextElement.cs
- XmlSignatureManifest.cs
- PolyQuadraticBezierSegment.cs
- Size.cs
- Assign.cs
- FontCacheUtil.cs
- ResourceProviderFactory.cs
- AdapterUtil.cs
- ConnectionsZone.cs
- SecurityDocument.cs
- FullTextLine.cs
- CheckBoxFlatAdapter.cs
- ObjectConverter.cs
- PrimitiveType.cs
- PathFigureCollectionConverter.cs
- XmlReader.cs
- PreDigestedSignedInfo.cs
- SchemaMapping.cs
- PrePostDescendentsWalker.cs
- InfoCardRequestException.cs
- Style.cs
- XmlSerializer.cs
- MouseGestureConverter.cs
- ScriptControlManager.cs
- SafeEventLogWriteHandle.cs
- XmlResolver.cs
- HttpContext.cs
- ValueChangedEventManager.cs
- Scheduler.cs
- ApplicationServiceHelper.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SynchronousSendBindingElement.cs
- CollectionConverter.cs
- HtmlElementEventArgs.cs
- WebPartEditVerb.cs
- SelectedGridItemChangedEvent.cs
- XmlSignatureManifest.cs
- CompilerScope.cs
- NTAccount.cs
- DocumentXPathNavigator.cs
- TypeResolver.cs
- CroppedBitmap.cs
- DateBoldEvent.cs
- DataServiceClientException.cs
- WmfPlaceableFileHeader.cs
- PageHandlerFactory.cs
- WebRequestModuleElement.cs
- TraceInternal.cs
- DocumentOutline.cs
- GrammarBuilderWildcard.cs
- XhtmlBasicLinkAdapter.cs
- safelinkcollection.cs
- ClientScriptItem.cs
- _LazyAsyncResult.cs
- PublisherMembershipCondition.cs
- WindowsClientElement.cs
- UserControlBuildProvider.cs
- HierarchicalDataSourceControl.cs
- HtmlWindow.cs
- InheritanceContextHelper.cs
- TileBrush.cs
- Pkcs7Recipient.cs
- ResourceDictionary.cs
- SimpleExpression.cs
- TrackingServices.cs
- WindowsListViewItemCheckBox.cs
- DependencyObject.cs
- Label.cs
- MILUtilities.cs
- FixedLineResult.cs
- DataGridViewCellLinkedList.cs
- DataPagerFieldItem.cs
- ConfigurationStrings.cs
- BinaryObjectReader.cs
- BamlRecords.cs
- Style.cs
- _TimerThread.cs
- MenuItemStyle.cs
- HMACSHA1.cs
- AddInAdapter.cs
- ToolStripPanelCell.cs
- VisualTreeHelper.cs
- WindowsAuthenticationModule.cs
- DataRowCollection.cs
- SqlUdtInfo.cs