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
- ListBoxAutomationPeer.cs
- DbConnectionPool.cs
- CustomValidator.cs
- CommandDesigner.cs
- CacheSection.cs
- XmlILStorageConverter.cs
- CollectionType.cs
- WebPartAuthorizationEventArgs.cs
- MethodExpr.cs
- ChangeBlockUndoRecord.cs
- DbConnectionClosed.cs
- ExceptionDetail.cs
- StretchValidation.cs
- AliasedSlot.cs
- AnimationTimeline.cs
- LinqDataSourceSelectEventArgs.cs
- ProfessionalColors.cs
- RegionInfo.cs
- Keyboard.cs
- SpellerHighlightLayer.cs
- ChangeConflicts.cs
- FlowchartDesigner.Helpers.cs
- ScriptResourceAttribute.cs
- SafeUserTokenHandle.cs
- XmlLinkedNode.cs
- DirectoryRedirect.cs
- DataGridViewColumnConverter.cs
- Debug.cs
- DBConnection.cs
- XpsFilter.cs
- isolationinterop.cs
- AggregateNode.cs
- WindowsServiceElement.cs
- ImageAutomationPeer.cs
- ConfigXmlDocument.cs
- SerializerWriterEventHandlers.cs
- ThemeableAttribute.cs
- FontCacheUtil.cs
- LayoutUtils.cs
- SwitchElementsCollection.cs
- TextBoxRenderer.cs
- XPathDocument.cs
- filewebresponse.cs
- SoapExtensionReflector.cs
- GorillaCodec.cs
- FamilyCollection.cs
- EntityDesignerDataSourceView.cs
- Currency.cs
- CompilationRelaxations.cs
- SQLDecimalStorage.cs
- DropSource.cs
- ListParaClient.cs
- Compiler.cs
- OleDbReferenceCollection.cs
- XmlSerializerSection.cs
- RowToParametersTransformer.cs
- QueryInterceptorAttribute.cs
- MyContact.cs
- BinHexEncoder.cs
- XMLSyntaxException.cs
- CreateSequence.cs
- ShaderEffect.cs
- ConfigurationStrings.cs
- OleDbInfoMessageEvent.cs
- EtwTrace.cs
- ConnectionPointCookie.cs
- ProofTokenCryptoHandle.cs
- IItemProperties.cs
- RotateTransform3D.cs
- SerialPort.cs
- BinaryMethodMessage.cs
- RenderCapability.cs
- DelegatedStream.cs
- LinqDataSourceSelectEventArgs.cs
- InstanceDataCollection.cs
- ZoneLinkButton.cs
- pingexception.cs
- FileSystemWatcher.cs
- DbUpdateCommandTree.cs
- CapabilitiesRule.cs
- DESCryptoServiceProvider.cs
- RotateTransform.cs
- ToolboxItemCollection.cs
- WebPartTracker.cs
- Column.cs
- DataPager.cs
- GridViewColumnCollection.cs
- ClientTarget.cs
- BooleanKeyFrameCollection.cs
- ProjectionPruner.cs
- SelectionChangedEventArgs.cs
- SqlFactory.cs
- SqlDependency.cs
- SpecularMaterial.cs
- RemotingException.cs
- UriParserTemplates.cs
- Guid.cs
- ConfigurationValues.cs
- TreeViewImageIndexConverter.cs
- CompoundFileIOPermission.cs