Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / DirectionalAction.cs / 1 / DirectionalAction.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Channels { using System.ServiceModel; using System.ServiceModel.Description; using System.Collections.Generic; internal class DirectionalAction : IComparable{ MessageDirection direction; string action; bool isNullAction; internal DirectionalAction(MessageDirection direction, string action) { if (!MessageDirectionHelper.IsDefined(direction)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("direction")); this.direction = direction; if (action == null) { this.action = MessageHeaders.WildcardAction; this.isNullAction = true; } else { this.action = action; this.isNullAction = false; } } public MessageDirection Direction { get { return this.direction; } } public string Action { get { return this.isNullAction ? null : this.action; } } public override bool Equals(Object other) { DirectionalAction tmp = other as DirectionalAction; if (tmp == null) return false; return this.Equals(tmp); } public bool Equals(DirectionalAction other) { if (other == null) return false; return (this.direction == other.direction) && (this.action == other.action); } public int CompareTo(DirectionalAction other) { if (other == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("other"); if ((this.direction == MessageDirection.Input) && (other.direction == MessageDirection.Output)) return -1; if ((this.direction == MessageDirection.Output) && (other.direction == MessageDirection.Input)) return 1; return this.action.CompareTo(other.action); } public override int GetHashCode() { return this.action.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- baseaxisquery.cs
- FileDialogCustomPlace.cs
- XmlObjectSerializerReadContextComplex.cs
- ProviderMetadataCachedInformation.cs
- CodeSnippetCompileUnit.cs
- WebEventCodes.cs
- FontUnitConverter.cs
- StyleReferenceConverter.cs
- HashAlgorithm.cs
- WizardStepBase.cs
- ReadWriteSpinLock.cs
- SplitterEvent.cs
- UnmanagedMemoryStreamWrapper.cs
- ItemList.cs
- TreeViewItemAutomationPeer.cs
- NativeWrapper.cs
- KoreanLunisolarCalendar.cs
- AmbientProperties.cs
- DataGridViewRowPrePaintEventArgs.cs
- MetadataException.cs
- DbCommandDefinition.cs
- AttributeCollection.cs
- LogLogRecordEnumerator.cs
- XdrBuilder.cs
- MetadataPropertyAttribute.cs
- HttpHandlerAction.cs
- FormattedText.cs
- AmbiguousMatchException.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- ConstraintStruct.cs
- DocumentScope.cs
- JsonWriter.cs
- TemplateDefinition.cs
- ButtonColumn.cs
- ArcSegment.cs
- SecurityElement.cs
- designeractionlistschangedeventargs.cs
- OdbcParameter.cs
- XhtmlBasicPanelAdapter.cs
- DateTimeParse.cs
- RectangleConverter.cs
- HttpCachePolicy.cs
- WebServiceParameterData.cs
- BamlBinaryWriter.cs
- GenericQueueSurrogate.cs
- XmlSchemaSet.cs
- TextParagraphProperties.cs
- KnownTypes.cs
- XmlUtil.cs
- BindingMemberInfo.cs
- ObjectListComponentEditor.cs
- TextFormatter.cs
- DispatchWrapper.cs
- QueryExpression.cs
- TimeZone.cs
- MsmqIntegrationChannelFactory.cs
- MultiAsyncResult.cs
- ImageMap.cs
- ExpressionBuilder.cs
- DesignerSerializationVisibilityAttribute.cs
- GridLength.cs
- CuspData.cs
- WebPartConnectionsConfigureVerb.cs
- Quaternion.cs
- StateMachineHelpers.cs
- TemplateControlBuildProvider.cs
- WS2007HttpBindingCollectionElement.cs
- VerificationException.cs
- TextDecoration.cs
- SinglePageViewer.cs
- ConfigXmlAttribute.cs
- GridItemCollection.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Base64Decoder.cs
- CommandHelper.cs
- VirtualDirectoryMapping.cs
- ExceptionRoutedEventArgs.cs
- HttpRequest.cs
- StaticExtension.cs
- FixedSOMLineRanges.cs
- BufferedWebEventProvider.cs
- XPathAncestorIterator.cs
- EditableTreeList.cs
- Directory.cs
- DetailsViewUpdatedEventArgs.cs
- MetafileHeaderEmf.cs
- RecordConverter.cs
- AutomationProperty.cs
- ConditionalDesigner.cs
- EdmValidator.cs
- ListControl.cs
- PropertyGridEditorPart.cs
- LabelEditEvent.cs
- SupportingTokenDuplexChannel.cs
- RandomNumberGenerator.cs
- SqlDataSourceConnectionPanel.cs
- String.cs
- QueryConverter.cs
- controlskin.cs
- TypeElement.cs