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
- FunctionQuery.cs
- RuntimeHandles.cs
- AccessibleObject.cs
- FileReservationCollection.cs
- WebControlAdapter.cs
- WebPartAuthorizationEventArgs.cs
- AuthenticationSection.cs
- ObjectDataSourceFilteringEventArgs.cs
- GridEntry.cs
- Convert.cs
- TaskFormBase.cs
- ToolBar.cs
- TreeWalkHelper.cs
- DataServiceBuildProvider.cs
- ProfileSettings.cs
- DragEvent.cs
- XsltSettings.cs
- dataSvcMapFileLoader.cs
- ErrorLog.cs
- RowToParametersTransformer.cs
- ProcessThreadCollection.cs
- CompilerWrapper.cs
- PerfCounterSection.cs
- WindowsProgressbar.cs
- UpdateTranslator.cs
- Section.cs
- FamilyTypeface.cs
- MatrixCamera.cs
- DashStyles.cs
- WebEncodingValidatorAttribute.cs
- DataBoundLiteralControl.cs
- SymDocumentType.cs
- TableDetailsRow.cs
- DesignerForm.cs
- IsolatedStorage.cs
- DeleteWorkflowOwnerCommand.cs
- DataGridPagerStyle.cs
- WebPartCatalogCloseVerb.cs
- RawMouseInputReport.cs
- DbUpdateCommandTree.cs
- BindableTemplateBuilder.cs
- ParenthesizePropertyNameAttribute.cs
- AttributeUsageAttribute.cs
- LineServicesCallbacks.cs
- PackagePart.cs
- HttpListenerTimeoutManager.cs
- ContainerParagraph.cs
- XmlSchemaObjectTable.cs
- TextServicesPropertyRanges.cs
- PropertyPathConverter.cs
- EtwProvider.cs
- AccessDataSourceView.cs
- WebResourceUtil.cs
- datacache.cs
- DataGridViewRowConverter.cs
- DesignerProperties.cs
- ImageClickEventArgs.cs
- WindowHelperService.cs
- XpsViewerException.cs
- TemplateBindingExtension.cs
- RichTextBoxConstants.cs
- SHA256CryptoServiceProvider.cs
- Membership.cs
- MdiWindowListItemConverter.cs
- HttpsHostedTransportConfiguration.cs
- StrokeNodeData.cs
- RegexCharClass.cs
- LicenseManager.cs
- SettingsPropertyValueCollection.cs
- EmbossBitmapEffect.cs
- BaseValidatorDesigner.cs
- XPathPatternParser.cs
- Application.cs
- ToolStripInSituService.cs
- XmlSchemaSimpleContent.cs
- TrackingMemoryStream.cs
- ForAllOperator.cs
- UserControl.cs
- EntityReference.cs
- UdpContractFilterBehavior.cs
- WebMessageEncodingBindingElement.cs
- FileLogRecord.cs
- DayRenderEvent.cs
- TemplateBamlTreeBuilder.cs
- NameService.cs
- xml.cs
- HttpWebResponse.cs
- BulletChrome.cs
- ListBoxItemAutomationPeer.cs
- StringValidatorAttribute.cs
- SettingsSection.cs
- HelpInfo.cs
- ApplicationInterop.cs
- KeyToListMap.cs
- TypeSource.cs
- DesignerAutoFormat.cs
- ExceptionUtil.cs
- EventProviderTraceListener.cs
- IgnoreSectionHandler.cs
- ActiveXMessageFormatter.cs