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
- SiteMapNodeCollection.cs
- SelectionPatternIdentifiers.cs
- InfoCardServiceInstallComponent.cs
- ResourcePermissionBaseEntry.cs
- InvokeGenerator.cs
- WebPartDescriptionCollection.cs
- SystemTcpConnection.cs
- AsyncOperationContext.cs
- NominalTypeEliminator.cs
- BaseTemplateBuildProvider.cs
- NotifyCollectionChangedEventArgs.cs
- XamlInt32CollectionSerializer.cs
- DurableErrorHandler.cs
- ResourceDefaultValueAttribute.cs
- CssStyleCollection.cs
- SqlDataSourceParameterParser.cs
- Point.cs
- ServiceReference.cs
- Queue.cs
- EmissiveMaterial.cs
- SafeRightsManagementPubHandle.cs
- SqlNodeAnnotation.cs
- WSIdentityFaultException.cs
- ServiceReference.cs
- PreviewKeyDownEventArgs.cs
- ConnectionPoint.cs
- NamedPipeTransportSecurity.cs
- DataRow.cs
- SmiEventStream.cs
- InheritanceRules.cs
- ProxyGenerationError.cs
- GridViewEditEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- Transform3DGroup.cs
- PrintDialog.cs
- controlskin.cs
- ServiceBuildProvider.cs
- ScriptManagerProxy.cs
- AssociationType.cs
- HttpDebugHandler.cs
- WebScriptMetadataMessageEncoderFactory.cs
- ExecutionContext.cs
- ListDictionary.cs
- Constants.cs
- FormViewModeEventArgs.cs
- UrlSyndicationContent.cs
- FixedSOMTableRow.cs
- PasswordRecovery.cs
- HttpContext.cs
- CreateBookmarkScope.cs
- TextServicesDisplayAttribute.cs
- TextUtf8RawTextWriter.cs
- XmlReader.cs
- SiteMapPath.cs
- WeakEventManager.cs
- HandlerFactoryWrapper.cs
- CheckBoxField.cs
- ExpandedWrapper.cs
- BasicExpandProvider.cs
- EventQueueState.cs
- DataGridViewRowCancelEventArgs.cs
- SafeArrayTypeMismatchException.cs
- FileCodeGroup.cs
- DrawingContextWalker.cs
- COMException.cs
- WmfPlaceableFileHeader.cs
- WorkflowCommandExtensionItem.cs
- SafeFindHandle.cs
- ListViewItemEventArgs.cs
- NativeWindow.cs
- ValidationErrorEventArgs.cs
- BroadcastEventHelper.cs
- LinkTarget.cs
- SimpleType.cs
- PersonalizationDictionary.cs
- ColorMatrix.cs
- DateTimeAutomationPeer.cs
- Cursor.cs
- CompositeCollectionView.cs
- Help.cs
- RunWorkerCompletedEventArgs.cs
- MaskedTextProvider.cs
- HelpProvider.cs
- TaiwanCalendar.cs
- EventLogTraceListener.cs
- CodeBinaryOperatorExpression.cs
- BitmapPalettes.cs
- Blend.cs
- TaskbarItemInfo.cs
- RoutedPropertyChangedEventArgs.cs
- FontSource.cs
- RectAnimationBase.cs
- HttpProcessUtility.cs
- NamespaceCollection.cs
- uribuilder.cs
- XPathNavigatorKeyComparer.cs
- PromptEventArgs.cs
- Itemizer.cs
- EllipticalNodeOperations.cs
- OleDbMetaDataFactory.cs