Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / CorrelationActionMessageFilter.cs / 1305376 / CorrelationActionMessageFilter.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel { using System.Globalization; using System.ServiceModel.Activities; using System.ServiceModel.Channels; using System.ServiceModel.Dispatcher; using SR2 = System.ServiceModel.Activities.SR; public class CorrelationActionMessageFilter : MessageFilter { ActionMessageFilter innerFilter; public CorrelationActionMessageFilter() : base() { } public string Action { get; set; } ActionMessageFilter GetInnerFilter() { if (this.innerFilter == null) { this.innerFilter = new ActionMessageFilter(this.Action); } return this.innerFilter; } public override bool Match(Message message) { if (message == null) { throw FxTrace.Exception.ArgumentNull("message"); } return this.GetInnerFilter().Match(message); } public override bool Match(MessageBuffer messageBuffer) { if (messageBuffer == null) { throw FxTrace.Exception.ArgumentNull("messageBuffer"); } return this.GetInnerFilter().Match(messageBuffer); } public override bool Equals(object other) { if (object.ReferenceEquals(this, other)) { return true; } CorrelationActionMessageFilter otherFilter = other as CorrelationActionMessageFilter; if (otherFilter == null) { return false; } return this.Action == otherFilter.Action; } public override int GetHashCode() { return (this.Action != null) ? this.Action.GetHashCode() : 0; } public override string ToString() { if (this.Action != null) { return string.Format(CultureInfo.InvariantCulture, "Action: {0}", this.Action); } return base.ToString(); } } } // 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
- RequestResizeEvent.cs
- EntityDesignerBuildProvider.cs
- TextHintingModeValidation.cs
- DataGridViewComboBoxEditingControl.cs
- OdbcCommand.cs
- ConfigXmlComment.cs
- ControlOperationInvoker.cs
- RegexCharClass.cs
- TextChangedEventArgs.cs
- EventLogPermissionEntry.cs
- RegexMatch.cs
- SqlExpressionNullability.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- VisualStyleInformation.cs
- ApplicationException.cs
- ZoneLinkButton.cs
- CodeDirectiveCollection.cs
- CacheAxisQuery.cs
- ChooseAction.cs
- Debug.cs
- SequenceFullException.cs
- DeploymentSection.cs
- DocobjHost.cs
- ItemsControlAutomationPeer.cs
- SystemIPGlobalStatistics.cs
- CanonicalizationDriver.cs
- Frame.cs
- ReplyChannelAcceptor.cs
- DynamicMethod.cs
- SplineKeyFrames.cs
- AppSettingsReader.cs
- Point3DAnimation.cs
- DesignerTextWriter.cs
- GridView.cs
- EventHandlers.cs
- ExpressionBindingCollection.cs
- ChangeDirector.cs
- TemplateKeyConverter.cs
- RouteParameter.cs
- InvokeHandlers.cs
- ReliableOutputConnection.cs
- MostlySingletonList.cs
- HttpModulesSection.cs
- OptimizerPatterns.cs
- CoTaskMemSafeHandle.cs
- GreenMethods.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- HyperlinkAutomationPeer.cs
- XamlStyleSerializer.cs
- ShapingWorkspace.cs
- DbConnectionStringCommon.cs
- SendSecurityHeaderElementContainer.cs
- HTTPNotFoundHandler.cs
- GridViewRowCollection.cs
- AttributeEmitter.cs
- XpsColorContext.cs
- SqlRowUpdatedEvent.cs
- IItemProperties.cs
- AppDomainProtocolHandler.cs
- BaseCollection.cs
- LocationSectionRecord.cs
- XamlReaderHelper.cs
- SettingsBase.cs
- StylusButton.cs
- SubqueryRules.cs
- ISAPIWorkerRequest.cs
- GenericAuthenticationEventArgs.cs
- ScriptResourceDefinition.cs
- UnmanagedMemoryStream.cs
- BindingMemberInfo.cs
- TreeNode.cs
- TextInfo.cs
- XmlSchemaCollection.cs
- XmlDomTextWriter.cs
- WebReferencesBuildProvider.cs
- unsafeIndexingFilterStream.cs
- FixedPageProcessor.cs
- KeyInfo.cs
- XmlC14NWriter.cs
- SQLBoolean.cs
- CodeMethodMap.cs
- DataServiceQueryProvider.cs
- StorageBasedPackageProperties.cs
- TextEffectResolver.cs
- _DynamicWinsockMethods.cs
- RtfControlWordInfo.cs
- SafeFileMappingHandle.cs
- TextMetrics.cs
- FixedBufferAttribute.cs
- RubberbandSelector.cs
- Inline.cs
- GridViewSortEventArgs.cs
- LineBreakRecord.cs
- GregorianCalendar.cs
- DataContract.cs
- PageHandlerFactory.cs
- Popup.cs
- XmlEventCache.cs
- XmlSchemaResource.cs
- ApplicationHost.cs