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
- ControlParameter.cs
- BuildProvider.cs
- ShaderRenderModeValidation.cs
- QueryExtender.cs
- PerspectiveCamera.cs
- UInt64.cs
- SqlMethodTransformer.cs
- TypeGeneratedEventArgs.cs
- RegexWriter.cs
- SmtpAuthenticationManager.cs
- ToolStripSplitButton.cs
- StaticTextPointer.cs
- ToolboxItemCollection.cs
- TemplateControl.cs
- ListBoxChrome.cs
- webeventbuffer.cs
- SpeakInfo.cs
- SqlHelper.cs
- ExpandableObjectConverter.cs
- VectorAnimation.cs
- IfJoinedCondition.cs
- Separator.cs
- MemberJoinTreeNode.cs
- VectorCollectionConverter.cs
- XamlTypeMapper.cs
- Rect.cs
- WindowsSolidBrush.cs
- OleDbError.cs
- SelfSignedCertificate.cs
- XmlSchemaObject.cs
- TypeHelpers.cs
- CertificateReferenceElement.cs
- AssemblyBuilderData.cs
- ComponentCodeDomSerializer.cs
- Stacktrace.cs
- Ipv6Element.cs
- ContractNamespaceAttribute.cs
- ModelPerspective.cs
- HtmlInputHidden.cs
- Debug.cs
- BamlReader.cs
- WebBrowserProgressChangedEventHandler.cs
- AlternationConverter.cs
- SqlOuterApplyReducer.cs
- OleDbStruct.cs
- ToolStripSettings.cs
- CallbackException.cs
- TextEffect.cs
- ContextMenuStrip.cs
- LinearGradientBrush.cs
- Lease.cs
- CroppedBitmap.cs
- ASCIIEncoding.cs
- XPathScanner.cs
- objectresult_tresulttype.cs
- KeyProperty.cs
- DiffuseMaterial.cs
- Timeline.cs
- NetworkAddressChange.cs
- ConfigXmlAttribute.cs
- ItemPager.cs
- RootProfilePropertySettingsCollection.cs
- SubMenuStyleCollection.cs
- Hex.cs
- IntSumAggregationOperator.cs
- DbConnectionPoolIdentity.cs
- SqlNamer.cs
- GeometryDrawing.cs
- DateTimePicker.cs
- PathData.cs
- SourceSwitch.cs
- URL.cs
- MapPathBasedVirtualPathProvider.cs
- MatrixStack.cs
- Duration.cs
- Int16Animation.cs
- InvalidDataException.cs
- ExclusiveCanonicalizationTransform.cs
- ScriptResourceDefinition.cs
- TreeNodeStyleCollection.cs
- LayoutEngine.cs
- CorrelationService.cs
- FileDialogCustomPlace.cs
- SignedXmlDebugLog.cs
- SqlDataSourceView.cs
- PersonalizationState.cs
- PropertyDescriptor.cs
- TableAdapterManagerGenerator.cs
- StylusSystemGestureEventArgs.cs
- PresentationAppDomainManager.cs
- Propagator.cs
- EventWaitHandle.cs
- Expander.cs
- EmptyImpersonationContext.cs
- GeneralTransform3D.cs
- ActivityExecutorDelegateInfo.cs
- ParallelTimeline.cs
- DataGridViewComboBoxEditingControl.cs
- VisualBasic.cs
- SpStreamWrapper.cs