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
- ControlCommandSet.cs
- ClientScriptManager.cs
- DocumentOutline.cs
- CustomSignedXml.cs
- ScrollData.cs
- WebPartZoneAutoFormat.cs
- ToolBarTray.cs
- ReliableReplySessionChannel.cs
- WinOEToolBoxItem.cs
- RepeatButton.cs
- DBDataPermission.cs
- ProfileServiceManager.cs
- InputGestureCollection.cs
- UrlMappingsModule.cs
- AttributeAction.cs
- ConnectionsZone.cs
- DataServiceException.cs
- Brushes.cs
- FontCollection.cs
- SetterTriggerConditionValueConverter.cs
- AppDomainManager.cs
- ToolStripArrowRenderEventArgs.cs
- PersonalizablePropertyEntry.cs
- AbstractDataSvcMapFileLoader.cs
- DirectionalLight.cs
- MediaPlayerState.cs
- _FixedSizeReader.cs
- DataReaderContainer.cs
- IntellisenseTextBox.cs
- TreeNodeBinding.cs
- PriorityItem.cs
- DefaultAsyncDataDispatcher.cs
- RootBrowserWindow.cs
- CollectionDataContractAttribute.cs
- TopClause.cs
- DeviceContext2.cs
- EnvironmentPermission.cs
- DataRecordInternal.cs
- IsolatedStorageException.cs
- DataSourceComponent.cs
- GridViewPageEventArgs.cs
- RichTextBox.cs
- IndexOutOfRangeException.cs
- SecurityCapabilities.cs
- PagePropertiesChangingEventArgs.cs
- HttpCacheVaryByContentEncodings.cs
- TypefaceMetricsCache.cs
- MenuCommand.cs
- XmlSerializerAssemblyAttribute.cs
- HyperlinkAutomationPeer.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- OpenTypeLayout.cs
- VersionedStreamOwner.cs
- TypedCompletedAsyncResult.cs
- LogStream.cs
- ObjectListTitleAttribute.cs
- Pkcs9Attribute.cs
- RequestCachePolicyConverter.cs
- Color.cs
- ValidationRule.cs
- SiteMapPath.cs
- NegotiateStream.cs
- EditorPartDesigner.cs
- ConfigXmlCDataSection.cs
- FontConverter.cs
- InputManager.cs
- Int32AnimationBase.cs
- TextElementEnumerator.cs
- LineSegment.cs
- Zone.cs
- ThaiBuddhistCalendar.cs
- QuotedPrintableStream.cs
- RegionInfo.cs
- GestureRecognizer.cs
- RotateTransform.cs
- oledbconnectionstring.cs
- MemberHolder.cs
- XmlQueryTypeFactory.cs
- EncryptedXml.cs
- ChildTable.cs
- Base64Encoder.cs
- LogStream.cs
- PreProcessInputEventArgs.cs
- GridPatternIdentifiers.cs
- DataGridViewRowConverter.cs
- Hashtable.cs
- _IPv4Address.cs
- EntityModelSchemaGenerator.cs
- MailWriter.cs
- IntSecurity.cs
- InstanceStoreQueryResult.cs
- ThemeableAttribute.cs
- LifetimeServices.cs
- StyleSelector.cs
- BrowserTree.cs
- WebPartTransformerAttribute.cs
- SystemWebCachingSectionGroup.cs
- XmlTextAttribute.cs
- UrlAuthorizationModule.cs
- CssStyleCollection.cs