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
- XmlSchemaSubstitutionGroup.cs
- SerialStream.cs
- MimeBasePart.cs
- SqlExpander.cs
- MenuCommand.cs
- RadioButton.cs
- Vector.cs
- DispatchWrapper.cs
- IsolationInterop.cs
- XmlCharacterData.cs
- XmlLoader.cs
- AliasGenerator.cs
- XmlImplementation.cs
- dbenumerator.cs
- SemanticValue.cs
- AxHost.cs
- RowBinding.cs
- Menu.cs
- PersonalizationProviderHelper.cs
- Pkcs9Attribute.cs
- DeclaredTypeValidator.cs
- XmlAttributeProperties.cs
- JavaScriptObjectDeserializer.cs
- SecurityNegotiationException.cs
- AddInDeploymentState.cs
- ZipIOExtraFieldElement.cs
- NaturalLanguageHyphenator.cs
- ValidationError.cs
- Int64Converter.cs
- FormDesigner.cs
- BitmapCodecInfoInternal.cs
- ProcessThread.cs
- TreeNode.cs
- XmlSerializationReader.cs
- TextLineResult.cs
- User.cs
- WindowsGrip.cs
- DataGridViewCellEventArgs.cs
- SynchronizationLockException.cs
- InfoCardTraceRecord.cs
- DBSqlParser.cs
- WindowsMenu.cs
- XPathChildIterator.cs
- Exception.cs
- BoundColumn.cs
- TemplateModeChangedEventArgs.cs
- QueryConverter.cs
- TypeExtension.cs
- XmlSecureResolver.cs
- COM2PropertyPageUITypeConverter.cs
- Compiler.cs
- NetworkStream.cs
- FlowDocumentScrollViewer.cs
- FileSystemWatcher.cs
- SspiSafeHandles.cs
- Parameter.cs
- HideDisabledControlAdapter.cs
- Int64Storage.cs
- XsdBuilder.cs
- TableLayoutPanelCellPosition.cs
- HeaderedItemsControl.cs
- HtmlInputImage.cs
- Random.cs
- ImageMap.cs
- StylusPlugin.cs
- ServiceChannelFactory.cs
- InputBinding.cs
- WindowsPrincipal.cs
- XamlValidatingReader.cs
- XmlQualifiedName.cs
- SqlDataSourceEnumerator.cs
- DelayLoadType.cs
- UpdateCompiler.cs
- CultureInfoConverter.cs
- ProxyElement.cs
- WebPartTracker.cs
- GridView.cs
- ConnectionManagementElementCollection.cs
- ProjectionPlan.cs
- CompositeFontParser.cs
- VideoDrawing.cs
- ValidatedControlConverter.cs
- SafeHandles.cs
- QilSortKey.cs
- TextTreeInsertElementUndoUnit.cs
- Empty.cs
- SingleObjectCollection.cs
- CacheSection.cs
- ProviderCommandInfoUtils.cs
- DependencyPropertyKey.cs
- ThicknessKeyFrameCollection.cs
- DiscoveryClientReferences.cs
- OleDbConnectionInternal.cs
- FigureParaClient.cs
- ThreadStateException.cs
- basenumberconverter.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- CompositionTarget.cs
- SqlProcedureAttribute.cs
- XmlSchemaCompilationSettings.cs