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
- SchemaSetCompiler.cs
- NameObjectCollectionBase.cs
- CodeSnippetExpression.cs
- DateTimeOffsetConverter.cs
- AttributeCollection.cs
- SafeProcessHandle.cs
- SqlBooleanizer.cs
- XmlDataProvider.cs
- GeneralTransform3DTo2D.cs
- DetailsViewDeletedEventArgs.cs
- PackagePart.cs
- SchemaTableColumn.cs
- ScalarType.cs
- ProfileModule.cs
- CellCreator.cs
- ServicePointManager.cs
- FaultReason.cs
- RegionInfo.cs
- StoryFragments.cs
- DataListItemEventArgs.cs
- EntityViewGenerationAttribute.cs
- FixedPage.cs
- EventMap.cs
- ButtonBaseAdapter.cs
- ClaimTypeElementCollection.cs
- IResourceProvider.cs
- ComPlusSynchronizationContext.cs
- Int64Storage.cs
- IndexerNameAttribute.cs
- TCPListener.cs
- ReservationCollection.cs
- XmlNodeList.cs
- SQLDecimal.cs
- ControlAdapter.cs
- WebRequestModulesSection.cs
- DataPager.cs
- PropertyEmitter.cs
- DesignerLoader.cs
- PeerNameResolver.cs
- TranslateTransform3D.cs
- Site.cs
- ILGenerator.cs
- Journal.cs
- InstancePersistenceContext.cs
- ValidatorCompatibilityHelper.cs
- OracleParameterBinding.cs
- XmlEncoding.cs
- NotifyInputEventArgs.cs
- Model3DGroup.cs
- GiveFeedbackEventArgs.cs
- RadioButton.cs
- ObjectAnimationBase.cs
- SecurityHelper.cs
- IisTraceListener.cs
- IDQuery.cs
- CompilationRelaxations.cs
- PolyLineSegment.cs
- WindowsTokenRoleProvider.cs
- WindowsComboBox.cs
- SqlTriggerAttribute.cs
- SourceFileBuildProvider.cs
- SelectionList.cs
- GenericEnumerator.cs
- HybridDictionary.cs
- FullTrustAssemblyCollection.cs
- CookieHandler.cs
- FlatButtonAppearance.cs
- CommonDialog.cs
- Int32Animation.cs
- WorkflowDebuggerSteppingAttribute.cs
- CssStyleCollection.cs
- ResourcePermissionBase.cs
- EditorPart.cs
- CompoundFileDeflateTransform.cs
- CodeAttachEventStatement.cs
- TreeView.cs
- SeparatorAutomationPeer.cs
- Menu.cs
- CompressionTransform.cs
- DataGridViewCellPaintingEventArgs.cs
- SearchForVirtualItemEventArgs.cs
- ItemsPresenter.cs
- XAMLParseException.cs
- ExtenderProvidedPropertyAttribute.cs
- CodeAttributeArgumentCollection.cs
- TextServicesManager.cs
- XomlCompilerParameters.cs
- DataGridHelper.cs
- SmtpDigestAuthenticationModule.cs
- Size.cs
- PreservationFileWriter.cs
- SortQuery.cs
- JapaneseCalendar.cs
- Faults.cs
- MouseActionValueSerializer.cs
- SelectionPatternIdentifiers.cs
- LicenseProviderAttribute.cs
- DataListDesigner.cs
- LicenseManager.cs
- ListControlBuilder.cs