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
- DoubleCollectionConverter.cs
- BitArray.cs
- FloatAverageAggregationOperator.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- SplashScreenNativeMethods.cs
- FileSystemEventArgs.cs
- HatchBrush.cs
- UserPersonalizationStateInfo.cs
- StateManagedCollection.cs
- NetworkInformationException.cs
- WebHttpSecurity.cs
- DCSafeHandle.cs
- ReflectionPermission.cs
- Range.cs
- RuntimeEnvironment.cs
- User.cs
- DesignerOptionService.cs
- SequentialUshortCollection.cs
- ReadOnlyDictionary.cs
- TraceSwitch.cs
- SerializationSectionGroup.cs
- ColumnHeaderConverter.cs
- DataGridTablesFactory.cs
- FixedSOMElement.cs
- PrimitiveDataContract.cs
- DispatcherProcessingDisabled.cs
- SchemaCollectionCompiler.cs
- ClientConfigurationSystem.cs
- ExternalException.cs
- TokenBasedSetEnumerator.cs
- TableItemProviderWrapper.cs
- XmlSignatureProperties.cs
- StatusBarItem.cs
- DataObjectFieldAttribute.cs
- HttpWebRequest.cs
- ToolStripOverflowButton.cs
- ItemsPanelTemplate.cs
- DragCompletedEventArgs.cs
- EmptyReadOnlyDictionaryInternal.cs
- Int32Collection.cs
- ServiceElementCollection.cs
- PublisherIdentityPermission.cs
- FormatConvertedBitmap.cs
- HtmlInputReset.cs
- ParserOptions.cs
- Journaling.cs
- NameNode.cs
- ErrorRuntimeConfig.cs
- ParameterCollectionEditorForm.cs
- ElementsClipboardData.cs
- RuleSettingsCollection.cs
- InheritablePropertyChangeInfo.cs
- ServiceReference.cs
- CustomPopupPlacement.cs
- SystemColorTracker.cs
- XmlNotation.cs
- ContentDisposition.cs
- DBCommand.cs
- PolicyImporterElementCollection.cs
- GridSplitter.cs
- Attributes.cs
- DetailsViewModeEventArgs.cs
- CaseInsensitiveHashCodeProvider.cs
- DbInsertCommandTree.cs
- PointConverter.cs
- UnsafeNativeMethods.cs
- StreamResourceInfo.cs
- WebPartMenuStyle.cs
- WindowsFormsSectionHandler.cs
- TextSpan.cs
- DocumentXmlWriter.cs
- ReferentialConstraint.cs
- CngAlgorithm.cs
- ApplicationTrust.cs
- WindowsStatic.cs
- AsyncWaitHandle.cs
- PrintEvent.cs
- AsymmetricSignatureDeformatter.cs
- LOSFormatter.cs
- BuildProviderCollection.cs
- ObjectDataSourceSelectingEventArgs.cs
- Stroke.cs
- HitTestParameters.cs
- ApplicationTrust.cs
- QilStrConcatenator.cs
- DbExpressionBuilder.cs
- PostBackTrigger.cs
- AsmxEndpointPickerExtension.cs
- UserControl.cs
- DefaultAssemblyResolver.cs
- RegisteredHiddenField.cs
- ByteStreamMessageUtility.cs
- CommandBindingCollection.cs
- controlskin.cs
- IDictionary.cs
- PaperSource.cs
- LicenseManager.cs
- SingleStorage.cs
- DataViewManagerListItemTypeDescriptor.cs
- ArrayConverter.cs