Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.ServiceModel.Web / System / ServiceModel / Description / WebScriptEndpoint.cs / 1305376 / WebScriptEndpoint.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 WebScriptEndpoint : WebServiceEndpoint { static Type WebScriptEndpointType = typeof(WebScriptEndpoint); public WebScriptEndpoint(ContractDescription contract) : this(contract, null /* address */) { } public WebScriptEndpoint(ContractDescription contract, EndpointAddress address) : base(contract, address) { this.Behaviors.Add(new WebScriptEnablingBehavior()); } WebScriptEnablingBehavior webScriptEnablingBehavior { get { WebScriptEnablingBehavior webScriptEnablingBehavior = this.Behaviors.Find(); if (webScriptEnablingBehavior == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.WebBehaviorNotFoundWithEndpoint, WebEndpointType.Name, typeof(WebScriptEnablingBehavior).Name))); } return webScriptEnablingBehavior; } } protected override Type WebEndpointType { get { return WebScriptEndpointType; } } } } // 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
- DBSqlParser.cs
- UrlAuthFailedErrorFormatter.cs
- Pointer.cs
- EventBuilder.cs
- LayoutManager.cs
- ServiceObjectContainer.cs
- ScrollChrome.cs
- ModelItemDictionaryImpl.cs
- UIElement3DAutomationPeer.cs
- KnownBoxes.cs
- CompositeScriptReference.cs
- DataGridViewCellCollection.cs
- LockedAssemblyCache.cs
- TextServicesDisplayAttribute.cs
- SafeIUnknown.cs
- WorkflowQueue.cs
- MiniModule.cs
- SerialErrors.cs
- EntityDataSourceView.cs
- Item.cs
- DataPagerFieldItem.cs
- ProjectionCamera.cs
- StyleSheetRefUrlEditor.cs
- WindowVisualStateTracker.cs
- WebBrowserPermission.cs
- MdImport.cs
- ConstructorBuilder.cs
- IndexerHelper.cs
- OutputCacheProviderCollection.cs
- InlineUIContainer.cs
- XmlArrayAttribute.cs
- ArraySubsetEnumerator.cs
- AppDomainFactory.cs
- Pair.cs
- TextTreeInsertUndoUnit.cs
- RandomNumberGenerator.cs
- StyleSelector.cs
- GeneralTransform3DGroup.cs
- ThumbAutomationPeer.cs
- ToolZone.cs
- ScalarType.cs
- EncoderBestFitFallback.cs
- BufferedGraphicsContext.cs
- PackageRelationshipCollection.cs
- KeyMatchBuilder.cs
- MarshalByValueComponent.cs
- StopStoryboard.cs
- RemoveStoryboard.cs
- ValidationErrorCollection.cs
- contentDescriptor.cs
- IntranetCredentialPolicy.cs
- XamlSerializer.cs
- OleAutBinder.cs
- BridgeDataRecord.cs
- DispatcherExceptionEventArgs.cs
- TranslateTransform3D.cs
- ToolboxItemCollection.cs
- StaticTextPointer.cs
- LogReservationCollection.cs
- ServicePointManager.cs
- StringPropertyBuilder.cs
- ShaderEffect.cs
- ListViewItemEventArgs.cs
- InkCanvasAutomationPeer.cs
- SiteMapNodeItem.cs
- RtfFormatStack.cs
- FormattedText.cs
- MsmqReceiveHelper.cs
- ChameleonKey.cs
- Keywords.cs
- Queue.cs
- IPEndPointCollection.cs
- Activator.cs
- Cloud.cs
- ParameterCollection.cs
- ScrollItemProviderWrapper.cs
- RuleSetCollection.cs
- PrintControllerWithStatusDialog.cs
- SystemDiagnosticsSection.cs
- InlineCollection.cs
- DomainConstraint.cs
- NativeMethods.cs
- RoutedEventArgs.cs
- PolyQuadraticBezierSegment.cs
- FtpRequestCacheValidator.cs
- LicenseProviderAttribute.cs
- OleDbPropertySetGuid.cs
- XmlElementAttribute.cs
- CheckBoxAutomationPeer.cs
- Authorization.cs
- DtcInterfaces.cs
- TreeView.cs
- XPathQilFactory.cs
- TypeDescriptionProvider.cs
- KeyInterop.cs
- WebPartDeleteVerb.cs
- SizeIndependentAnimationStorage.cs
- ControlPropertyNameConverter.cs
- WebResourceUtil.cs
- AppDomainUnloadedException.cs