Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Administration / EndpointInfo.cs / 1 / EndpointInfo.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Administration { using System; using System.Collections.Generic; using System.ServiceModel.Channels; using System.ServiceModel; using System.ServiceModel.Description; using System.Diagnostics; using System.Runtime.Serialization; using System.ServiceModel.Diagnostics; internal sealed class EndpointInfo { Uri address; KeyedByTypeCollectionbehaviors; EndpointIdentity identity; AddressHeaderCollection headers; CustomBinding binding; ContractDescription contract; ServiceEndpoint endpoint; string serviceName; internal EndpointInfo(ServiceEndpoint endpoint, string serviceName) { DiagnosticUtility.DebugAssert(null != endpoint, "endpoint cannot be null"); this.endpoint = endpoint; this.address = endpoint.Address.Uri; this.headers = endpoint.Address.Headers; this.identity = endpoint.Address.Identity; this.behaviors = endpoint.Behaviors; this.serviceName = serviceName; this.binding = null == endpoint.Binding ? new CustomBinding() : new CustomBinding(endpoint.Binding); this.contract = endpoint.Contract; } public Uri Address { get { return this.address; } } public Uri ListenUri { get { return null != this.Endpoint.ListenUri ? this.Endpoint.ListenUri : this.Address; } } public KeyedByTypeCollection Behaviors { get { return this.behaviors; } } public ContractDescription Contract { get { return this.contract; } } public CustomBinding Binding { get { return this.binding; } } public ServiceEndpoint Endpoint { get { return this.endpoint; } } public AddressHeaderCollection Headers { get { return this.headers; } } public EndpointIdentity Identity { get { return this.identity; } } public string Name { get { return this.ServiceName + "." + this.Contract.Name + "@" + this.Address.AbsoluteUri; } } public string ServiceName { get { return this.serviceName; } } } } // 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
- GenericAuthenticationEventArgs.cs
- WindowsSpinner.cs
- SchemaHelper.cs
- OdbcConnectionPoolProviderInfo.cs
- DebugHandleTracker.cs
- WebExceptionStatus.cs
- SynchronizationHandlesCodeDomSerializer.cs
- MarkupCompilePass1.cs
- ClientScriptManagerWrapper.cs
- DependsOnAttribute.cs
- LinearKeyFrames.cs
- DataGridViewRowHeaderCell.cs
- DbConnectionHelper.cs
- CombinedGeometry.cs
- PolicyUtility.cs
- ContentDesigner.cs
- documentsequencetextpointer.cs
- PartialArray.cs
- SolidColorBrush.cs
- XmlNodeList.cs
- TableLayoutRowStyleCollection.cs
- HashAlgorithm.cs
- DataGridViewRowsRemovedEventArgs.cs
- KeySplineConverter.cs
- SymbolMethod.cs
- WebPartDisplayModeCancelEventArgs.cs
- ClientSideQueueItem.cs
- TextFormatterHost.cs
- MSHTMLHost.cs
- X509ChainElement.cs
- Rule.cs
- QueryActivatableWorkflowsCommand.cs
- PolicyLevel.cs
- ExpressionCopier.cs
- UnsafeNativeMethods.cs
- DiffuseMaterial.cs
- WebBrowserHelper.cs
- MessageQuerySet.cs
- XmlSchemaCompilationSettings.cs
- ChangeBlockUndoRecord.cs
- WindowsGraphicsCacheManager.cs
- GridViewUpdatedEventArgs.cs
- Brush.cs
- XmlSchemaAttributeGroupRef.cs
- HostedTcpTransportManager.cs
- XmlNodeChangedEventArgs.cs
- TemplateBindingExpression.cs
- MergablePropertyAttribute.cs
- StyleSheetDesigner.cs
- SamlDelegatingWriter.cs
- VoiceInfo.cs
- ListViewItem.cs
- PageBreakRecord.cs
- ProviderIncompatibleException.cs
- SchemaCollectionCompiler.cs
- ListViewCommandEventArgs.cs
- SocketElement.cs
- DynamicQueryStringParameter.cs
- RightNameExpirationInfoPair.cs
- ResXResourceSet.cs
- DataGridViewCellValueEventArgs.cs
- WindowsScroll.cs
- TaiwanLunisolarCalendar.cs
- TransformGroup.cs
- TextAnchor.cs
- StateItem.cs
- PenLineJoinValidation.cs
- MembershipUser.cs
- xml.cs
- Perspective.cs
- IdnMapping.cs
- NativeCompoundFileAPIs.cs
- ExtensionDataObject.cs
- TouchPoint.cs
- LocationReference.cs
- UmAlQuraCalendar.cs
- TargetException.cs
- Int16AnimationUsingKeyFrames.cs
- TimeStampChecker.cs
- TogglePatternIdentifiers.cs
- RequestCacheValidator.cs
- AggregatePushdown.cs
- ProviderException.cs
- Funcletizer.cs
- ObjectDataSourceDisposingEventArgs.cs
- OleDbParameterCollection.cs
- RenderOptions.cs
- ColorKeyFrameCollection.cs
- SQLMembershipProvider.cs
- ComponentEditorForm.cs
- XamlReaderHelper.cs
- odbcmetadatafactory.cs
- SourceLineInfo.cs
- EntryWrittenEventArgs.cs
- GCHandleCookieTable.cs
- StringCollectionEditor.cs
- columnmapfactory.cs
- RunInstallerAttribute.cs
- PackagePartCollection.cs
- ApplicationContext.cs