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
- UrlRoutingModule.cs
- Parameter.cs
- CngProvider.cs
- DataObjectFieldAttribute.cs
- followingsibling.cs
- IsolatedStorageSecurityState.cs
- SiteMapDesignerDataSourceView.cs
- PlaceHolder.cs
- ParallelTimeline.cs
- UIElement3DAutomationPeer.cs
- StreamInfo.cs
- WindowProviderWrapper.cs
- PartialClassGenerationTaskInternal.cs
- PropertyTabAttribute.cs
- XmlnsCompatibleWithAttribute.cs
- AuthenticateEventArgs.cs
- SortKey.cs
- SmtpNegotiateAuthenticationModule.cs
- mansign.cs
- ScrollBarRenderer.cs
- DoubleConverter.cs
- ObjectMemberMapping.cs
- XmlName.cs
- PerformanceCounterPermission.cs
- ControlBuilderAttribute.cs
- AnnotationAdorner.cs
- GroupBox.cs
- XsltOutput.cs
- Hex.cs
- PointCollection.cs
- ImmComposition.cs
- WindowsListViewItemStartMenu.cs
- FormsAuthenticationModule.cs
- GridViewDeleteEventArgs.cs
- ExpandSegment.cs
- PartialCachingControl.cs
- ContentPresenter.cs
- DesignerDataConnection.cs
- SemanticResolver.cs
- IndexedWhereQueryOperator.cs
- CodeTypeParameterCollection.cs
- GridItem.cs
- OptionUsage.cs
- ISO2022Encoding.cs
- PtsPage.cs
- ShapingEngine.cs
- DataGridBoolColumn.cs
- TimeSpanOrInfiniteConverter.cs
- ContextMenuService.cs
- Deserializer.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- EventHandlers.cs
- CreateSequence.cs
- XmlSchemaAppInfo.cs
- DataGridToolTip.cs
- ExpressionPrinter.cs
- DBSchemaTable.cs
- StrongNameUtility.cs
- TextEditorParagraphs.cs
- HScrollProperties.cs
- Converter.cs
- TrackingMemoryStreamFactory.cs
- EventData.cs
- ColumnWidthChangingEvent.cs
- XmlSchemaObject.cs
- BuildTopDownAttribute.cs
- Stylesheet.cs
- AngleUtil.cs
- ProgressBarRenderer.cs
- Int64AnimationBase.cs
- RotationValidation.cs
- MenuItem.cs
- WebPartConnectionsCloseVerb.cs
- XmlDataProvider.cs
- StringDictionaryCodeDomSerializer.cs
- FileDialog_Vista.cs
- SHA1Managed.cs
- Glyph.cs
- ButtonChrome.cs
- CodeParameterDeclarationExpression.cs
- QueryOptionExpression.cs
- CollectionType.cs
- CounterSampleCalculator.cs
- XmlCustomFormatter.cs
- GridEntry.cs
- Sentence.cs
- Image.cs
- BitStream.cs
- CodeNamespaceImport.cs
- SecurityManager.cs
- ConfigViewGenerator.cs
- SamlAuthorizationDecisionStatement.cs
- BrowserTree.cs
- PersonalizationProvider.cs
- OneOfScalarConst.cs
- ConsoleKeyInfo.cs
- Quack.cs
- XmlReaderSettings.cs
- TreeNodeBinding.cs
- DbConnectionPool.cs