Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.ServiceModel.Web / System / ServiceModel / WebScriptServiceHost.cs / 1305376 / WebScriptServiceHost.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.IO; using System.Collections.Generic; using System.ServiceModel.Description; using System.Diagnostics.CodeAnalysis; using System.Configuration; using System.ServiceModel.Web; using System.Net; using System.ServiceModel.Channels; class WebScriptServiceHost : ServiceHost { static readonly string WebScriptEndpointKind = "webScriptEndpoint"; public WebScriptServiceHost(Type serviceType, params Uri[] baseAddresses) : base(serviceType, baseAddresses) { } protected override void OnOpening() { WebServiceHost.AddAutomaticWebHttpBindingEndpoints(this, this.ImplementedContracts, SR2.GetString(SR2.JsonWebScriptServiceHostOneServiceContract, this.ImplementedContracts.Count), WebScriptEndpointKind); foreach (ServiceEndpoint endpoint in this.Description.Endpoints) { if (endpoint.Binding != null && endpoint.Binding.CreateBindingElements().Find() != null) { if (endpoint.Behaviors.Find () == null) { ConfigLoader.LoadDefaultEndpointBehaviors(endpoint); if (endpoint.Behaviors.Find () == null) { endpoint.Behaviors.Add(new WebScriptEnablingBehavior()); } } } } base.OnOpening(); } } } // 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
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- _UriTypeConverter.cs
- ChangePassword.cs
- HttpContext.cs
- AttributeQuery.cs
- SspiSecurityTokenParameters.cs
- WinInetCache.cs
- EndpointInstanceProvider.cs
- Action.cs
- DataGridItemAttachedStorage.cs
- ConfigurationValues.cs
- ActiveXHost.cs
- ColumnHeaderConverter.cs
- ExpressionPrinter.cs
- WebBrowserNavigatedEventHandler.cs
- DummyDataSource.cs
- ValueConversionAttribute.cs
- ProfileGroupSettings.cs
- Cursor.cs
- SoapSchemaImporter.cs
- Crc32Helper.cs
- TimeSpanOrInfiniteValidator.cs
- HttpWriter.cs
- FormViewDeletedEventArgs.cs
- SQLDateTime.cs
- UserValidatedEventArgs.cs
- SchemaCollectionCompiler.cs
- CatalogZone.cs
- ColorAnimationBase.cs
- Margins.cs
- WebPartEventArgs.cs
- CommandID.cs
- Socket.cs
- ViewLoader.cs
- NativeMethods.cs
- AudioFormatConverter.cs
- ToolStripDropDownClosingEventArgs.cs
- HostSecurityManager.cs
- LoginUtil.cs
- SoapTypeAttribute.cs
- WorkflowInlining.cs
- DriveInfo.cs
- HostProtectionPermission.cs
- AdapterSwitches.cs
- CodeAccessSecurityEngine.cs
- BitHelper.cs
- DataQuery.cs
- XmlSchemaSequence.cs
- ApplicationSecurityInfo.cs
- ItemsControlAutomationPeer.cs
- UnknownWrapper.cs
- FixedStringLookup.cs
- UIAgentRequest.cs
- SqlClientFactory.cs
- SByteStorage.cs
- ApplicationHost.cs
- LeaseManager.cs
- PolyBezierSegment.cs
- XmlDsigSep2000.cs
- FunctionOverloadResolver.cs
- _ChunkParse.cs
- DesignBindingValueUIHandler.cs
- RoutedEventHandlerInfo.cs
- webbrowsersite.cs
- ContentTextAutomationPeer.cs
- FieldAccessException.cs
- PrimarySelectionGlyph.cs
- _FtpDataStream.cs
- COM2Enum.cs
- CryptoConfig.cs
- ResourceDisplayNameAttribute.cs
- IteratorFilter.cs
- ScrollItemProviderWrapper.cs
- TdsParameterSetter.cs
- XmlNode.cs
- BinaryObjectWriter.cs
- AspProxy.cs
- _SafeNetHandles.cs
- SQLInt64.cs
- EnumType.cs
- UriTemplatePathSegment.cs
- counter.cs
- SelectionPattern.cs
- ResourceDisplayNameAttribute.cs
- FragmentNavigationEventArgs.cs
- AppDomainCompilerProxy.cs
- SHA1CryptoServiceProvider.cs
- FreeIndexList.cs
- glyphs.cs
- _ListenerAsyncResult.cs
- HtmlImage.cs
- HtmlInputSubmit.cs
- Rect3D.cs
- WeakReference.cs
- ProfileService.cs
- StructuredProperty.cs
- DataGridViewColumn.cs
- dsa.cs
- DelayedRegex.cs
- BasicKeyConstraint.cs