Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.ServiceModel.Web / System / ServiceModel / Description / WebHttpEndpoint.cs / 1305376 / WebHttpEndpoint.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Description { using System; using System.Globalization; using System.ServiceModel; using System.ServiceModel.Dispatcher; using System.ServiceModel.Channels; using System.Collections.Generic; using System.Diagnostics; using System.ServiceModel.Web; using System.Text; using System.Xml; [DebuggerDisplay("Address={address}")] [DebuggerDisplay("Name={name}")] public class WebHttpEndpoint : WebServiceEndpoint { static Type WebHttpEndpointType = typeof(WebHttpEndpoint); public WebHttpEndpoint(ContractDescription contract) : this(contract, null /* address */) { } public WebHttpEndpoint(ContractDescription contract, EndpointAddress address) : base(contract, address) { this.Behaviors.Add(new WebHttpBehavior()); } public bool HelpEnabled { get { return this.webHttpBehavior.HelpEnabled; } set { this.webHttpBehavior.HelpEnabled = value; } } public WebMessageFormat DefaultOutgoingResponseFormat { get { return this.webHttpBehavior.DefaultOutgoingResponseFormat; } set { this.webHttpBehavior.DefaultOutgoingResponseFormat = value; } } public bool AutomaticFormatSelectionEnabled { get { return this.webHttpBehavior.AutomaticFormatSelectionEnabled; } set { this.webHttpBehavior.AutomaticFormatSelectionEnabled = value; } } public bool FaultExceptionEnabled { get { return this.webHttpBehavior.FaultExceptionEnabled; } set { this.webHttpBehavior.FaultExceptionEnabled = value; } } WebHttpBehavior webHttpBehavior { get { WebHttpBehavior webHttpBehavior = this.Behaviors.Find(); if (webHttpBehavior == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.WebBehaviorNotFoundWithEndpoint, typeof(WebHttpEndpoint).Name, typeof(WebHttpBehavior).Name))); } return webHttpBehavior; } } protected override Type WebEndpointType { get { return WebHttpEndpointType; } } } } // 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
- MDIControlStrip.cs
- SafeViewOfFileHandle.cs
- TypeUsage.cs
- LookupBindingPropertiesAttribute.cs
- ArglessEventHandlerProxy.cs
- Propagator.ExtentPlaceholderCreator.cs
- EntityDataSourceValidationException.cs
- TextTrailingWordEllipsis.cs
- LogicalExpressionTypeConverter.cs
- FolderLevelBuildProvider.cs
- HttpResponseInternalWrapper.cs
- PrimitiveType.cs
- Single.cs
- Component.cs
- PenContexts.cs
- DropDownButton.cs
- GroupedContextMenuStrip.cs
- ListDictionary.cs
- RectangleGeometry.cs
- AlignmentXValidation.cs
- MediaElementAutomationPeer.cs
- NameScope.cs
- ParserContext.cs
- DecoderNLS.cs
- DocumentSequence.cs
- AutoGeneratedField.cs
- DataTableExtensions.cs
- DataGridViewComboBoxCell.cs
- DataKey.cs
- DeviceSpecific.cs
- SupportingTokenParameters.cs
- UncommonField.cs
- IisTraceWebEventProvider.cs
- Vector3D.cs
- XmlDataSource.cs
- Baml6ConstructorInfo.cs
- DataControlCommands.cs
- FamilyMapCollection.cs
- ConfigXmlSignificantWhitespace.cs
- Setter.cs
- ActivationService.cs
- VerticalAlignConverter.cs
- OracleDataReader.cs
- RelatedView.cs
- Vector.cs
- Pens.cs
- CalloutQueueItem.cs
- ArrangedElement.cs
- ListViewTableCell.cs
- PrimitiveType.cs
- OutputCacheSection.cs
- _DigestClient.cs
- ContentFilePart.cs
- QuestionEventArgs.cs
- MailBnfHelper.cs
- NotifyCollectionChangedEventArgs.cs
- externdll.cs
- App.cs
- UTF32Encoding.cs
- FlowDocument.cs
- PrePostDescendentsWalker.cs
- InheritanceContextChangedEventManager.cs
- HScrollProperties.cs
- RemotingServices.cs
- MimeReflector.cs
- PolicyManager.cs
- MDIWindowDialog.cs
- BindingObserver.cs
- ConfigurationCollectionAttribute.cs
- WindowsAltTab.cs
- ViewStateException.cs
- ObjectViewEntityCollectionData.cs
- NativeMethodsOther.cs
- MenuRendererStandards.cs
- EventMap.cs
- TrustLevel.cs
- ParamArrayAttribute.cs
- Win32Native.cs
- FocusWithinProperty.cs
- MemberInfoSerializationHolder.cs
- sqlcontext.cs
- FrameworkContentElementAutomationPeer.cs
- MergeFilterQuery.cs
- SystemIPInterfaceProperties.cs
- RadioButtonPopupAdapter.cs
- XmlDocumentType.cs
- DropShadowEffect.cs
- ProcessingInstructionAction.cs
- DesigntimeLicenseContextSerializer.cs
- HtmlInputImage.cs
- AdRotator.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- AjaxFrameworkAssemblyAttribute.cs
- RuleSetDialog.Designer.cs
- IMembershipProvider.cs
- ObjectDataSourceDisposingEventArgs.cs
- DoubleCollection.cs
- DependencyPropertyChangedEventArgs.cs
- ProcessModuleDesigner.cs
- XmlWrappingReader.cs