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
- Pair.cs
- TraceUtils.cs
- Deserializer.cs
- XmlSchemaSimpleContentRestriction.cs
- StrongNameUtility.cs
- ClusterSafeNativeMethods.cs
- ElementAction.cs
- SocketAddress.cs
- XmlCodeExporter.cs
- AgileSafeNativeMemoryHandle.cs
- BaseCollection.cs
- XmlSchemaParticle.cs
- LogicalExpr.cs
- SimpleApplicationHost.cs
- DataObjectAttribute.cs
- GridViewColumnHeader.cs
- PolyBezierSegment.cs
- WindowHideOrCloseTracker.cs
- Light.cs
- ExceptionUtility.cs
- BitmapEffectDrawing.cs
- ThreadLocal.cs
- NativeMethods.cs
- SecurityDescriptor.cs
- WindowsFormsLinkLabel.cs
- Attachment.cs
- PerformanceCounterPermission.cs
- ConfigurationManagerHelper.cs
- RowParagraph.cs
- Win32.cs
- Assert.cs
- GradientSpreadMethodValidation.cs
- CacheEntry.cs
- __Filters.cs
- NavigationExpr.cs
- CurrentChangingEventManager.cs
- VScrollBar.cs
- SignatureHelper.cs
- AutomationFocusChangedEventArgs.cs
- SerialReceived.cs
- PointLightBase.cs
- TemplateControlCodeDomTreeGenerator.cs
- MediaCommands.cs
- StyleCollectionEditor.cs
- EventLogPermissionAttribute.cs
- AudioStateChangedEventArgs.cs
- EndOfStreamException.cs
- SQLGuidStorage.cs
- XmlSerializationGeneratedCode.cs
- SQLBinary.cs
- EventSinkActivity.cs
- CompensationExtension.cs
- TripleDESCryptoServiceProvider.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataServiceExpressionVisitor.cs
- DataListCommandEventArgs.cs
- LostFocusEventManager.cs
- ClientProxyGenerator.cs
- TextTreeUndoUnit.cs
- StreamAsIStream.cs
- HashHelpers.cs
- ToolStripDropDownMenu.cs
- X509Utils.cs
- ReferenceEqualityComparer.cs
- FixedSOMElement.cs
- CodeGenerationManager.cs
- regiisutil.cs
- IImplicitResourceProvider.cs
- SafeMILHandleMemoryPressure.cs
- _emptywebproxy.cs
- HwndProxyElementProvider.cs
- X509Certificate2.cs
- DbExpressionBuilder.cs
- CustomValidator.cs
- VisualState.cs
- PerformanceCounterPermissionEntry.cs
- ScrollProviderWrapper.cs
- ToolStripDropDownClosedEventArgs.cs
- DispatcherObject.cs
- DataGridRelationshipRow.cs
- Debugger.cs
- ObjectViewFactory.cs
- AllMembershipCondition.cs
- DataExpression.cs
- FontWeight.cs
- Animatable.cs
- KeyValueConfigurationCollection.cs
- JsonWriter.cs
- HttpProtocolReflector.cs
- MetadataItemEmitter.cs
- TextSimpleMarkerProperties.cs
- PartManifestEntry.cs
- TraceContextRecord.cs
- __TransparentProxy.cs
- _NetworkingPerfCounters.cs
- WebServiceReceive.cs
- MetaDataInfo.cs
- ProfileService.cs
- DesignerEventService.cs
- TextSearch.cs