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
- NumberFormatInfo.cs
- Pipe.cs
- VideoDrawing.cs
- Rijndael.cs
- DesignTimeVisibleAttribute.cs
- PagePropertiesChangingEventArgs.cs
- FlowDocumentPage.cs
- DynamicUpdateCommand.cs
- StandardCommandToolStripMenuItem.cs
- Cursor.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Buffer.cs
- DocumentViewerBase.cs
- FolderBrowserDialog.cs
- PostBackOptions.cs
- TableCell.cs
- ISO2022Encoding.cs
- DataSourceCacheDurationConverter.cs
- VarInfo.cs
- Event.cs
- UniformGrid.cs
- SignatureToken.cs
- DispatcherTimer.cs
- HighContrastHelper.cs
- PrintController.cs
- DateTimeOffsetAdapter.cs
- VisualSerializer.cs
- TextRangeBase.cs
- MobileContainerDesigner.cs
- TypeRestriction.cs
- ListViewInsertEventArgs.cs
- IgnoreFlushAndCloseStream.cs
- FunctionMappingTranslator.cs
- ClientBuildManager.cs
- assertwrapper.cs
- ListParagraph.cs
- HeaderCollection.cs
- Point3DCollection.cs
- ChtmlMobileTextWriter.cs
- LogReservationCollection.cs
- XsdDataContractExporter.cs
- FocusChangedEventArgs.cs
- FloaterBaseParaClient.cs
- SHA384CryptoServiceProvider.cs
- CqlGenerator.cs
- BitmapEffectInputConnector.cs
- StrokeSerializer.cs
- TraceLevelStore.cs
- OutputCacheProfileCollection.cs
- XmlWriterTraceListener.cs
- LinkUtilities.cs
- NetworkCredential.cs
- UInt64Storage.cs
- FontUnitConverter.cs
- FrameDimension.cs
- ToolZone.cs
- CompilerCollection.cs
- WriteableBitmap.cs
- PowerStatus.cs
- Crypto.cs
- ServiceEndpointCollection.cs
- RectangleGeometry.cs
- FontSource.cs
- Decoder.cs
- DataTableTypeConverter.cs
- Base64Stream.cs
- Ipv6Element.cs
- SortQuery.cs
- WindowsServiceElement.cs
- FontNamesConverter.cs
- RadioButton.cs
- FixedTextView.cs
- SqlBuilder.cs
- DbParameterHelper.cs
- SelectionRangeConverter.cs
- StylusPointPropertyInfoDefaults.cs
- BinaryFormatterWriter.cs
- ScriptManagerProxy.cs
- StringExpressionSet.cs
- _DomainName.cs
- CurrentTimeZone.cs
- XmlUtf8RawTextWriter.cs
- ADRoleFactoryConfiguration.cs
- StylusPointProperties.cs
- TileBrush.cs
- FragmentQueryKB.cs
- ProtectedConfigurationProviderCollection.cs
- DictionaryContent.cs
- DrawItemEvent.cs
- LocationUpdates.cs
- SrgsNameValueTag.cs
- EventWaitHandle.cs
- MD5CryptoServiceProvider.cs
- TdsValueSetter.cs
- MachineKeyConverter.cs
- PathFigureCollectionConverter.cs
- XslAst.cs
- LocatorPart.cs
- GeometryCombineModeValidation.cs
- Pts.cs