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
- BindingList.cs
- DbConnectionHelper.cs
- HwndSourceKeyboardInputSite.cs
- WindowsBrush.cs
- HitTestParameters.cs
- WebHeaderCollection.cs
- IEnumerable.cs
- DispatcherHookEventArgs.cs
- ExtensibleClassFactory.cs
- BinaryNode.cs
- RegexMatchCollection.cs
- X509WindowsSecurityToken.cs
- SqlFlattener.cs
- WebPartMinimizeVerb.cs
- IdentityNotMappedException.cs
- DragDrop.cs
- RegexTypeEditor.cs
- InstancePersistenceException.cs
- ClientTargetCollection.cs
- DataGridViewCellCollection.cs
- ResourceReader.cs
- HwndSourceParameters.cs
- SafeFindHandle.cs
- Setter.cs
- XPathNodeHelper.cs
- SecurityTokenReferenceStyle.cs
- OperationAbortedException.cs
- ParentUndoUnit.cs
- DataSourceView.cs
- XPathAncestorIterator.cs
- SQLByteStorage.cs
- TextServicesProperty.cs
- HMACMD5.cs
- SynchronizingStream.cs
- ToolZone.cs
- XmlSchemas.cs
- RenderData.cs
- SmiEventSink.cs
- ControlParameter.cs
- PeerDefaultCustomResolverClient.cs
- DummyDataSource.cs
- ToolStripSystemRenderer.cs
- HttpCachePolicyElement.cs
- TrackBarRenderer.cs
- PopupControlService.cs
- RelatedCurrencyManager.cs
- DesignerAttributeInfo.cs
- TemplatedWizardStep.cs
- Utility.cs
- FrameworkElementAutomationPeer.cs
- Section.cs
- MsmqInputMessage.cs
- CorrelationRequestContext.cs
- SR.cs
- RectConverter.cs
- RawAppCommandInputReport.cs
- TemplateBindingExtension.cs
- IPGlobalProperties.cs
- CommonGetThemePartSize.cs
- EntityViewGenerationAttribute.cs
- Literal.cs
- Rijndael.cs
- XpsSerializationManager.cs
- NaturalLanguageHyphenator.cs
- SafeProcessHandle.cs
- X509RawDataKeyIdentifierClause.cs
- DataListItemEventArgs.cs
- CommunicationObjectAbortedException.cs
- WebPageTraceListener.cs
- connectionpool.cs
- DataGridViewAccessibleObject.cs
- TextHintingModeValidation.cs
- TimerElapsedEvenArgs.cs
- XmlFileEditor.cs
- ISO2022Encoding.cs
- AttachmentCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SqlUDTStorage.cs
- HtmlFormWrapper.cs
- ImageCollectionEditor.cs
- HtmlImage.cs
- ObjectDataSource.cs
- followingquery.cs
- ExtractCollection.cs
- ExceptionUtil.cs
- GACMembershipCondition.cs
- WebPartExportVerb.cs
- RuntimeConfig.cs
- CompleteWizardStep.cs
- ACE.cs
- DynamicMethod.cs
- DataPagerFieldCollection.cs
- CompilerGeneratedAttribute.cs
- SHA384Managed.cs
- CollectionChangedEventManager.cs
- ParameterBuilder.cs
- PathFigureCollection.cs
- StateValidator.cs
- UTF7Encoding.cs
- MimeMapping.cs