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
- ActivityDesignerLayoutSerializers.cs
- TextEditorDragDrop.cs
- ZipIORawDataFileBlock.cs
- ListViewGroupItemCollection.cs
- CodeLabeledStatement.cs
- precedingsibling.cs
- InputProviderSite.cs
- StateDesigner.TransitionInfo.cs
- Thumb.cs
- HttpRequestCacheValidator.cs
- MetaData.cs
- Ref.cs
- LabelEditEvent.cs
- UndoEngine.cs
- CheckedPointers.cs
- TransactionBridge.cs
- IPeerNeighbor.cs
- XmlDataSourceView.cs
- EventSinkHelperWriter.cs
- IPPacketInformation.cs
- RemoteWebConfigurationHost.cs
- BitmapPalettes.cs
- CharacterBuffer.cs
- ErrorFormatter.cs
- IsolatedStorageFilePermission.cs
- ScriptIgnoreAttribute.cs
- AnonymousIdentificationModule.cs
- AppDomainGrammarProxy.cs
- NameValuePair.cs
- FileReader.cs
- FlagsAttribute.cs
- EventProxy.cs
- ComplexLine.cs
- VerifyHashRequest.cs
- NativeMethods.cs
- SerializationException.cs
- ReturnType.cs
- ImagingCache.cs
- NetworkInformationException.cs
- QualificationDataAttribute.cs
- MergePropertyDescriptor.cs
- DbParameterCollection.cs
- Button.cs
- ChangeToolStripParentVerb.cs
- CompiledIdentityConstraint.cs
- FixUp.cs
- ElapsedEventArgs.cs
- KeyedByTypeCollection.cs
- TypeListConverter.cs
- HttpApplicationFactory.cs
- XmlSerializationGeneratedCode.cs
- InheritanceAttribute.cs
- ScrollBar.cs
- MarkupCompiler.cs
- XmlRawWriter.cs
- FilePrompt.cs
- HostProtectionException.cs
- CacheModeValueSerializer.cs
- ChangePasswordAutoFormat.cs
- TemplateApplicationHelper.cs
- ReferenceConverter.cs
- ContextMarshalException.cs
- MultiView.cs
- BrowserCapabilitiesFactoryBase.cs
- PathSegmentCollection.cs
- ExpressionParser.cs
- PriorityChain.cs
- SystemTcpConnection.cs
- DashStyles.cs
- DBConcurrencyException.cs
- CollectionChangeEventArgs.cs
- StylusPlugInCollection.cs
- SHA384.cs
- CatalogPart.cs
- TextReader.cs
- BindingSource.cs
- EqualityComparer.cs
- DependencyPropertyDescriptor.cs
- FlowDocument.cs
- Int32CAMarshaler.cs
- TextStore.cs
- ConnectionsZone.cs
- IdentityValidationException.cs
- iisPickupDirectory.cs
- SafeUserTokenHandle.cs
- ChtmlPageAdapter.cs
- InputReportEventArgs.cs
- SchemaType.cs
- CommandPlan.cs
- AutomationEventArgs.cs
- DecoderFallback.cs
- EdmType.cs
- JoinCqlBlock.cs
- VariableDesigner.xaml.cs
- FixedSOMPageConstructor.cs
- ProviderCommandInfoUtils.cs
- ProcessRequestArgs.cs
- MediaPlayerState.cs
- ToolStripDropDownMenu.cs
- ListenerAdapterBase.cs