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
- FlowPosition.cs
- TdsEnums.cs
- Int32KeyFrameCollection.cs
- StylusPointProperty.cs
- DataTableCollection.cs
- SqlDuplicator.cs
- OdbcTransaction.cs
- StoryFragments.cs
- CompatibleComparer.cs
- DataGridViewCell.cs
- EventHandlersStore.cs
- QuotaThrottle.cs
- Converter.cs
- Bits.cs
- TransactionProtocol.cs
- SchemaContext.cs
- NativeMethods.cs
- ProcessInfo.cs
- ACE.cs
- UnaryExpressionHelper.cs
- Thread.cs
- LocalizedNameDescriptionPair.cs
- SynchronizedChannelCollection.cs
- Configuration.cs
- SecurityMode.cs
- OrderedEnumerableRowCollection.cs
- AsyncOperation.cs
- XmlUtil.cs
- MenuItem.cs
- FixedPosition.cs
- WebPartMenuStyle.cs
- SoapHeaderException.cs
- ChtmlSelectionListAdapter.cs
- RenderingEventArgs.cs
- TextReader.cs
- MetadataImporter.cs
- CommandEventArgs.cs
- OdbcStatementHandle.cs
- AsyncOperation.cs
- HashHelpers.cs
- recordstatescratchpad.cs
- Group.cs
- ImageList.cs
- ConnectionPointCookie.cs
- ResourcePermissionBase.cs
- PersistenceContext.cs
- SamlSerializer.cs
- ToolBar.cs
- RequiredFieldValidator.cs
- PreDigestedSignedInfo.cs
- PathFigureCollectionValueSerializer.cs
- BindableTemplateBuilder.cs
- AddInStore.cs
- FixUpCollection.cs
- WaitHandle.cs
- ServerTooBusyException.cs
- TaiwanLunisolarCalendar.cs
- FtpWebResponse.cs
- CfgArc.cs
- FixedDSBuilder.cs
- DynamicPhysicalDiscoSearcher.cs
- PrintPageEvent.cs
- TemplateControlParser.cs
- SafeEventLogWriteHandle.cs
- CqlQuery.cs
- StatusBarPanel.cs
- MediaElementAutomationPeer.cs
- _IPv4Address.cs
- TemplateColumn.cs
- CollectionDataContract.cs
- CallSite.cs
- AssociationType.cs
- WMICapabilities.cs
- XamlDesignerSerializationManager.cs
- SettingsBindableAttribute.cs
- WebPartEditVerb.cs
- SourceChangedEventArgs.cs
- SafeViewOfFileHandle.cs
- PointValueSerializer.cs
- PageAsyncTaskManager.cs
- ScopelessEnumAttribute.cs
- X509ThumbprintKeyIdentifierClause.cs
- SqlFacetAttribute.cs
- VerificationAttribute.cs
- precedingsibling.cs
- EdmType.cs
- SerializableTypeCodeDomSerializer.cs
- CatalogZone.cs
- DesignerResources.cs
- BlurEffect.cs
- OleDbWrapper.cs
- ControllableStoryboardAction.cs
- HitTestFilterBehavior.cs
- AcceleratedTokenProviderState.cs
- LinqDataSourceValidationException.cs
- Array.cs
- ObjectDataSource.cs
- XmlSchemaObject.cs
- Propagator.Evaluator.cs
- Funcletizer.cs