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
- SimpleWebHandlerParser.cs
- SiteMap.cs
- StoreAnnotationsMap.cs
- ExpressionBindingsDialog.cs
- CacheEntry.cs
- ToolStripSplitButton.cs
- Win32PrintDialog.cs
- EndpointNameMessageFilter.cs
- OdbcCommandBuilder.cs
- DictationGrammar.cs
- httpstaticobjectscollection.cs
- CroppedBitmap.cs
- ForwardPositionQuery.cs
- RootAction.cs
- WinFormsUtils.cs
- AsnEncodedData.cs
- PEFileReader.cs
- FormViewUpdateEventArgs.cs
- ThreadStartException.cs
- TextProperties.cs
- RbTree.cs
- LogArchiveSnapshot.cs
- Utils.cs
- RowCache.cs
- OleDbException.cs
- SequenceDesigner.cs
- SettingsPropertyValueCollection.cs
- InstanceNormalEvent.cs
- HtmlWindow.cs
- CodeRemoveEventStatement.cs
- InlinedAggregationOperatorEnumerator.cs
- SetIterators.cs
- DecimalConstantAttribute.cs
- XmlSchemaSimpleTypeList.cs
- RegexCode.cs
- InvalidCastException.cs
- SQLSingle.cs
- XmlSchemaSimpleContentRestriction.cs
- BasePattern.cs
- SchemaTableColumn.cs
- ListViewDesigner.cs
- diagnosticsswitches.cs
- CodeAttachEventStatement.cs
- BlurEffect.cs
- SafeArrayTypeMismatchException.cs
- InfoCardArgumentException.cs
- WebPartActionVerb.cs
- InvalidStoreProtectionKeyException.cs
- ReadWriteObjectLock.cs
- XmlName.cs
- RegexCompiler.cs
- TextCompositionManager.cs
- ListCollectionView.cs
- SqlTransaction.cs
- QueryConverter.cs
- SystemNetworkInterface.cs
- Int64Storage.cs
- Point3DCollection.cs
- InfoCardPolicy.cs
- ExtendLockAsyncResult.cs
- ResponseBodyWriter.cs
- SmiSettersStream.cs
- DES.cs
- DataSourceSelectArguments.cs
- ListViewGroupCollectionEditor.cs
- BamlLocalizableResourceKey.cs
- Material.cs
- ReferenceSchema.cs
- ProfileParameter.cs
- Constants.cs
- ClientCredentialsSecurityTokenManager.cs
- ReceiveMessageRecord.cs
- EmbeddedMailObject.cs
- HttpClientCertificate.cs
- ObjectQuery.cs
- JournalEntry.cs
- SqlBuilder.cs
- SoapSchemaMember.cs
- TextTreeInsertUndoUnit.cs
- AnnotationResource.cs
- StreamAsIStream.cs
- WindowsPen.cs
- PackWebRequestFactory.cs
- FamilyCollection.cs
- XmlSequenceWriter.cs
- diagnosticsswitches.cs
- HttpWebRequestElement.cs
- XmlSchemaSimpleType.cs
- ChangePassword.cs
- ScriptingProfileServiceSection.cs
- cookiecontainer.cs
- compensatingcollection.cs
- RC2.cs
- SessionState.cs
- DependencyPropertyAttribute.cs
- SourceFileInfo.cs
- PopupRootAutomationPeer.cs
- HMACRIPEMD160.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- HttpChannelFactory.cs