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
- TextEditorTables.cs
- HashSet.cs
- WebBrowserHelper.cs
- CursorInteropHelper.cs
- AssemblyEvidenceFactory.cs
- CircleHotSpot.cs
- RestClientProxyHandler.cs
- ResourceDictionary.cs
- UserCancellationException.cs
- TableRowGroup.cs
- XmlUnspecifiedAttribute.cs
- CollectionEditorDialog.cs
- RequestChannelBinder.cs
- StyleModeStack.cs
- BeginStoryboard.cs
- CollectionViewGroupRoot.cs
- DragCompletedEventArgs.cs
- Fx.cs
- QilNode.cs
- PrtCap_Base.cs
- URLBuilder.cs
- LocalizationComments.cs
- MenuRendererStandards.cs
- Switch.cs
- SymbolEqualComparer.cs
- ReflectionTypeLoadException.cs
- PageCatalogPart.cs
- WorkerRequest.cs
- InstanceDescriptor.cs
- CopyOfAction.cs
- JoinSymbol.cs
- Vector3DValueSerializer.cs
- DurableInstanceContextProvider.cs
- InheritablePropertyChangeInfo.cs
- Rotation3D.cs
- DependencyPropertyKind.cs
- HwndTarget.cs
- ScaleTransform3D.cs
- DirectoryNotFoundException.cs
- AncestorChangedEventArgs.cs
- ComplexPropertyEntry.cs
- DataListItemEventArgs.cs
- CreateRefExpr.cs
- WebPageTraceListener.cs
- ScrollEvent.cs
- RegistryConfigurationProvider.cs
- AtomEntry.cs
- FormsAuthentication.cs
- PolicyException.cs
- Matrix3DValueSerializer.cs
- CorrelationKeyCalculator.cs
- PrimarySelectionGlyph.cs
- StateRuntime.cs
- GregorianCalendarHelper.cs
- ComponentCollection.cs
- TextEditorCharacters.cs
- SpellerStatusTable.cs
- ResetableIterator.cs
- XmlLanguageConverter.cs
- Line.cs
- SparseMemoryStream.cs
- ThreadPool.cs
- Variable.cs
- InvalidFilterCriteriaException.cs
- StructuralType.cs
- LinqDataSourceDeleteEventArgs.cs
- NameValueConfigurationElement.cs
- AutomationPropertyInfo.cs
- NativeRecognizer.cs
- XamlNamespaceHelper.cs
- MetadataFile.cs
- GorillaCodec.cs
- DispatcherObject.cs
- PageBuildProvider.cs
- DockProviderWrapper.cs
- BindToObject.cs
- XmlChildEnumerator.cs
- ObjectDataSourceStatusEventArgs.cs
- XmlSchema.cs
- ImpersonateTokenRef.cs
- MatrixValueSerializer.cs
- FormViewAutoFormat.cs
- Assembly.cs
- SqlDataAdapter.cs
- TypeListConverter.cs
- TagNameToTypeMapper.cs
- SuppressIldasmAttribute.cs
- TextRunTypographyProperties.cs
- VideoDrawing.cs
- _UriSyntax.cs
- TextParagraphCache.cs
- SpellerHighlightLayer.cs
- BridgeDataRecord.cs
- FilterException.cs
- DynamicResourceExtensionConverter.cs
- ScriptControlDescriptor.cs
- ProbeDuplexAsyncResult.cs
- Math.cs
- ErrorProvider.cs
- webeventbuffer.cs