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
- TypeBuilder.cs
- StylusPoint.cs
- SerialPort.cs
- SessionStateSection.cs
- OpenTypeCommon.cs
- CfgArc.cs
- DisplayInformation.cs
- DataGridViewIntLinkedList.cs
- CharKeyFrameCollection.cs
- UniqueID.cs
- EqualityArray.cs
- ImageKeyConverter.cs
- PointKeyFrameCollection.cs
- oledbmetadatacolumnnames.cs
- ToolStripSettings.cs
- BindUriHelper.cs
- Rss20ItemFormatter.cs
- PermissionAttributes.cs
- FolderBrowserDialog.cs
- BasicKeyConstraint.cs
- ViewCellRelation.cs
- GacUtil.cs
- DbXmlEnabledProviderManifest.cs
- GroupBoxAutomationPeer.cs
- FixedBufferAttribute.cs
- XhtmlBasicListAdapter.cs
- CorrelationResolver.cs
- Composition.cs
- BackStopAuthenticationModule.cs
- DirectoryObjectSecurity.cs
- CompositeFontParser.cs
- QuaternionAnimationBase.cs
- ReferencedCollectionType.cs
- Header.cs
- CustomErrorsSectionWrapper.cs
- AlgoModule.cs
- AnnotationService.cs
- ErrorTableItemStyle.cs
- WebServiceErrorEvent.cs
- CommonEndpointBehaviorElement.cs
- FixedSOMTable.cs
- TCEAdapterGenerator.cs
- TransformProviderWrapper.cs
- DataServiceResponse.cs
- UniqueConstraint.cs
- CalendarDateRange.cs
- CompletionProxy.cs
- CompilerGlobalScopeAttribute.cs
- SqlDataSourceTableQuery.cs
- CodeRemoveEventStatement.cs
- Resources.Designer.cs
- TraceLog.cs
- ModelFactory.cs
- Process.cs
- ConfigXmlDocument.cs
- __ConsoleStream.cs
- CollectionViewGroupInternal.cs
- MobileContainerDesigner.cs
- CDSCollectionETWBCLProvider.cs
- DesignerOptions.cs
- RSAProtectedConfigurationProvider.cs
- ObjectTokenCategory.cs
- DependencyPropertyKey.cs
- handlecollector.cs
- JoinTreeSlot.cs
- httpapplicationstate.cs
- DrawingAttributesDefaultValueFactory.cs
- QuadraticBezierSegment.cs
- LinkUtilities.cs
- DoubleLinkList.cs
- VirtualPath.cs
- ResourceReader.cs
- RelationshipEndCollection.cs
- IntegerValidator.cs
- InputProcessorProfilesLoader.cs
- XmlAtomicValue.cs
- TextEndOfLine.cs
- LiteralControl.cs
- TypedReference.cs
- DurableMessageDispatchInspector.cs
- InstanceCreationEditor.cs
- EmptyTextWriter.cs
- FormatException.cs
- EventHandlingScope.cs
- ImplicitInputBrush.cs
- MultiSelectRootGridEntry.cs
- XslNumber.cs
- InstanceLockedException.cs
- RectValueSerializer.cs
- ConfigurationPropertyAttribute.cs
- XmlWrappingReader.cs
- AbsoluteQuery.cs
- AttributeEmitter.cs
- StylusPointPropertyInfoDefaults.cs
- XComponentModel.cs
- BinaryFormatterWriter.cs
- ExtensionDataReader.cs
- EventProvider.cs
- InfocardExtendedInformationCollection.cs
- XmlDictionaryString.cs