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
- DataQuery.cs
- TimeZone.cs
- MessageQueueConverter.cs
- ExitEventArgs.cs
- BulletedListEventArgs.cs
- AssemblyBuilderData.cs
- SmtpReplyReaderFactory.cs
- VideoDrawing.cs
- SpecularMaterial.cs
- SyncMethodInvoker.cs
- login.cs
- BuildProvider.cs
- ContextProperty.cs
- DataTable.cs
- XmlReader.cs
- GuidTagList.cs
- XmlTypeMapping.cs
- SelectionEditor.cs
- CompatibleComparer.cs
- CodeMemberMethod.cs
- StandardCommands.cs
- AsymmetricAlgorithm.cs
- DbMetaDataColumnNames.cs
- OrderingExpression.cs
- SerializationInfo.cs
- CheckBoxList.cs
- FontStyle.cs
- TextRunCache.cs
- SelectedDatesCollection.cs
- Int64Converter.cs
- Control.cs
- SerializableAttribute.cs
- BitmapEncoder.cs
- MethodBody.cs
- SerializationAttributes.cs
- WriterOutput.cs
- DataGridViewSelectedCellCollection.cs
- DispatcherTimer.cs
- OAVariantLib.cs
- SrgsNameValueTag.cs
- GregorianCalendar.cs
- SessionState.cs
- Domain.cs
- WindowVisualStateTracker.cs
- CodeTypeConstructor.cs
- OletxDependentTransaction.cs
- SqlReferenceCollection.cs
- SQLBinaryStorage.cs
- DataGridItemCollection.cs
- ContentFilePart.cs
- Exception.cs
- AlternateView.cs
- unsafenativemethodsother.cs
- WebDisplayNameAttribute.cs
- TrimSurroundingWhitespaceAttribute.cs
- TextDecorationCollection.cs
- FormDesigner.cs
- LayeredChannelFactory.cs
- DataBinder.cs
- DataRecord.cs
- SqlCommand.cs
- WebConvert.cs
- SafeUserTokenHandle.cs
- CursorEditor.cs
- Messages.cs
- DocumentXPathNavigator.cs
- RefreshPropertiesAttribute.cs
- CodeObject.cs
- DataPagerCommandEventArgs.cs
- InkCanvasFeedbackAdorner.cs
- StorageFunctionMapping.cs
- DependencyPropertyValueSerializer.cs
- ProjectionPathBuilder.cs
- BamlLocalizableResourceKey.cs
- SslStreamSecurityBindingElement.cs
- PolyLineSegmentFigureLogic.cs
- CodeTypeReference.cs
- DateTimeOffsetConverter.cs
- DetailsViewRowCollection.cs
- FieldBuilder.cs
- ButtonBaseDesigner.cs
- DbProviderFactories.cs
- SortedList.cs
- MonitoringDescriptionAttribute.cs
- SortKey.cs
- NameObjectCollectionBase.cs
- ChildrenQuery.cs
- ClientRolePrincipal.cs
- CardSpaceShim.cs
- MouseActionConverter.cs
- mactripleDES.cs
- BehaviorDragDropEventArgs.cs
- TCEAdapterGenerator.cs
- Trustee.cs
- SchemaElementLookUpTableEnumerator.cs
- EventsTab.cs
- JsonReaderWriterFactory.cs
- ContextBase.cs
- TextProperties.cs
- RoleServiceManager.cs