Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Routing / System / ServiceModel / Routing / RoutingEndpointTrait.cs / 1305376 / RoutingEndpointTrait.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Routing { using System.ServiceModel.Description; sealed class RoutingEndpointTrait { public RoutingEndpointTrait(Type routerContract, ServiceEndpoint endpoint, OperationContext operationContext) { if (routerContract == typeof(IDuplexSessionRouter)) { IDuplexRouterCallback callbackSession = operationContext.GetCallbackChannel(); this.CallbackInstance = callbackSession; } this.Endpoint = endpoint; this.RouterContract = routerContract; } public IDuplexRouterCallback CallbackInstance { get; private set; } public ServiceEndpoint Endpoint { get; private set; } public Type RouterContract { get; private set; } public override bool Equals(object obj) { RoutingEndpointTrait other = obj as RoutingEndpointTrait; if (other == null) { return false; } if (!object.ReferenceEquals(this.Endpoint, other.Endpoint)) { return false; } if (this.RouterContract != other.RouterContract) { return false; } if (!object.ReferenceEquals(this.CallbackInstance, other.CallbackInstance)) { return false; } return true; } public override int GetHashCode() { int num = 0; num ^= this.Endpoint.GetHashCode(); num ^= this.RouterContract.GetHashCode(); if (this.CallbackInstance != null) { num ^= this.CallbackInstance.GetHashCode(); } return num; } public override string ToString() { return this.Endpoint.Name + ";" + this.Endpoint.Binding.Name + ";" + this.Endpoint.Address.Uri.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewCellStyleConverter.cs
- Attributes.cs
- ConfigurationElementCollection.cs
- DisplayInformation.cs
- DbQueryCommandTree.cs
- SqlComparer.cs
- SecurityKeyIdentifier.cs
- MonikerSyntaxException.cs
- UserControlDocumentDesigner.cs
- Vector3DAnimationBase.cs
- OfTypeExpression.cs
- TraceContextRecord.cs
- TableRow.cs
- DataStreamFromComStream.cs
- MergeFilterQuery.cs
- BindingMAnagerBase.cs
- WindowsSlider.cs
- DataKeyPropertyAttribute.cs
- XPathDocumentNavigator.cs
- Pipe.cs
- Attributes.cs
- ConfigurationManagerHelper.cs
- CalendarAutoFormatDialog.cs
- DataGridItemCollection.cs
- StylusPointProperty.cs
- SelectionHighlightInfo.cs
- SortDescription.cs
- ClientScriptManager.cs
- ToolStripPanelRow.cs
- StreamingContext.cs
- Scheduler.cs
- CombinedGeometry.cs
- NetworkStream.cs
- AvTraceDetails.cs
- httpserverutility.cs
- ArgumentValidation.cs
- SafeCryptoHandles.cs
- baseaxisquery.cs
- LinqToSqlWrapper.cs
- XmlSchemaType.cs
- EncodingStreamWrapper.cs
- _UriSyntax.cs
- Point3DCollectionConverter.cs
- ViewGenerator.cs
- NavigationHelper.cs
- Bitmap.cs
- DbDataSourceEnumerator.cs
- CLSCompliantAttribute.cs
- XmlSchemaAnnotation.cs
- TemplateColumn.cs
- TimelineClockCollection.cs
- WebResourceAttribute.cs
- CompModSwitches.cs
- MaterialGroup.cs
- PropertyOverridesDialog.cs
- TextDpi.cs
- XmlSchemaRedefine.cs
- sqlstateclientmanager.cs
- XmlReflectionMember.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- UIElementParagraph.cs
- TimeSpan.cs
- DesignTimeSiteMapProvider.cs
- Camera.cs
- _NTAuthentication.cs
- WindowsRegion.cs
- QilList.cs
- WriteableBitmap.cs
- QilParameter.cs
- CircleEase.cs
- CursorConverter.cs
- Model3DGroup.cs
- AbsoluteQuery.cs
- QueryCacheEntry.cs
- BaseProcessor.cs
- LiteralControl.cs
- xml.cs
- TimeEnumHelper.cs
- CalendarDay.cs
- SmiRequestExecutor.cs
- CacheSection.cs
- SmtpNetworkElement.cs
- LabelLiteral.cs
- AstTree.cs
- Parameter.cs
- WebPartRestoreVerb.cs
- SiteMapNodeCollection.cs
- TextBounds.cs
- MethodInfo.cs
- COM2ComponentEditor.cs
- cookie.cs
- TypeNameConverter.cs
- Matrix3D.cs
- AppDomainProtocolHandler.cs
- CngKeyBlobFormat.cs
- CollectionViewSource.cs
- Figure.cs
- COM2PropertyDescriptor.cs
- DocumentApplicationJournalEntry.cs
- GcSettings.cs