Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Dispatcher / EndpointFilterProvider.cs / 1 / EndpointFilterProvider.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Dispatcher { using System.Collections.Generic; using System.ServiceModel.Channels; using System.Runtime.Serialization; class EndpointFilterProvider { SynchronizedCollectioninitiatingActions; object mutex; public EndpointFilterProvider(params string[] initiatingActions) { this.mutex = new object(); this.initiatingActions = new SynchronizedCollection (this.mutex, initiatingActions); } public SynchronizedCollection InitiatingActions { get { return this.initiatingActions; } } public MessageFilter CreateFilter(out int priority) { lock (this.mutex) { priority = 1; if (initiatingActions.Count == 0) return new MatchNoneMessageFilter(); string[] actions = new string[initiatingActions.Count]; int index = 0; for (int i = 0; i < initiatingActions.Count; i++) { string currentAction = initiatingActions[i]; if (currentAction == MessageHeaders.WildcardAction) { priority = 0; return new MatchAllMessageFilter(); } actions[index] = currentAction; ++index; } return new ActionMessageFilter(actions); } } } } // 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
- XDeferredAxisSource.cs
- ResXFileRef.cs
- OleDbError.cs
- SerializationObjectManager.cs
- WebBrowserDesigner.cs
- DesignColumnCollection.cs
- AudioBase.cs
- MailMessage.cs
- ClientTargetCollection.cs
- InstanceDescriptor.cs
- ResourcesBuildProvider.cs
- XmlDataSourceView.cs
- InputScopeConverter.cs
- RectangleConverter.cs
- Brushes.cs
- InputProcessorProfilesLoader.cs
- SyntaxCheck.cs
- EnumConverter.cs
- Brush.cs
- NativeMethods.cs
- FixedTextBuilder.cs
- BamlTreeNode.cs
- CommonObjectSecurity.cs
- WebConfigurationFileMap.cs
- ApplicationActivator.cs
- ComEventsMethod.cs
- TTSEngineProxy.cs
- InputLanguageSource.cs
- PointCollectionValueSerializer.cs
- LinkDescriptor.cs
- DatatypeImplementation.cs
- Exception.cs
- METAHEADER.cs
- XmlSiteMapProvider.cs
- XmlUtf8RawTextWriter.cs
- BindingContext.cs
- SqlDataSourceStatusEventArgs.cs
- TableLayoutPanel.cs
- NamespaceInfo.cs
- GroupBoxAutomationPeer.cs
- WebPartVerbCollection.cs
- X509Certificate2Collection.cs
- VScrollProperties.cs
- DataGridTablesFactory.cs
- TextTreeExtractElementUndoUnit.cs
- FillRuleValidation.cs
- InputLanguageManager.cs
- MeasurementDCInfo.cs
- DockProviderWrapper.cs
- LogSwitch.cs
- MarshalDirectiveException.cs
- DBPropSet.cs
- AccessorTable.cs
- dbdatarecord.cs
- NCryptSafeHandles.cs
- KnownBoxes.cs
- TreeNodeStyleCollection.cs
- JoinSymbol.cs
- ButtonChrome.cs
- StylusCaptureWithinProperty.cs
- Rotation3D.cs
- SqlSelectClauseBuilder.cs
- BaseAsyncResult.cs
- ArraySet.cs
- CreateRefExpr.cs
- SingleAnimationUsingKeyFrames.cs
- Component.cs
- httpserverutility.cs
- GZipStream.cs
- NavigationPropertyEmitter.cs
- MasterPageParser.cs
- Substitution.cs
- SmtpCommands.cs
- FillRuleValidation.cs
- MarshalByRefObject.cs
- OLEDB_Util.cs
- StorageEntitySetMapping.cs
- ControlBindingsConverter.cs
- TemplateNameScope.cs
- Transform3D.cs
- ByteAnimation.cs
- SafeLibraryHandle.cs
- DisplayMemberTemplateSelector.cs
- _KerberosClient.cs
- Mutex.cs
- DrawingImage.cs
- UpdatePanelTriggerCollection.cs
- VisemeEventArgs.cs
- ScrollEventArgs.cs
- MenuEventArgs.cs
- InitializerFacet.cs
- ChangeNode.cs
- TrustLevel.cs
- WeakReferenceEnumerator.cs
- GetRecipientListRequest.cs
- WindowsAuthenticationEventArgs.cs
- HttpCapabilitiesBase.cs
- QueryCacheKey.cs
- WebPartTransformerAttribute.cs
- SortAction.cs