Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / NetFx35 / System.ServiceModel.Web / System / ServiceModel / WebScriptServiceHost.cs / 1 / 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 { public WebScriptServiceHost(Type serviceType, params Uri[] baseAddresses) : base(serviceType, baseAddresses) { } protected override void OnOpening() { base.OnOpening(); WebServiceHost.AddAutomaticWebHttpBindingEndpoints(this, this.ImplementedContracts, SR2.GetString(SR2.JsonWebScriptServiceHostOneServiceContract, this.ImplementedContracts.Count)); foreach (ServiceEndpoint endpoint in this.Description.Endpoints) { if (endpoint.Binding != null && endpoint.Binding.CreateBindingElements().Find() != null) { if (endpoint.Behaviors.Find () == null) { endpoint.Behaviors.Add(new WebScriptEnablingBehavior()); } } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WorkflowControlEndpoint.cs
- CodePrimitiveExpression.cs
- PersonalizationEntry.cs
- LinqDataSourceDeleteEventArgs.cs
- SmtpLoginAuthenticationModule.cs
- DataConnectionHelper.cs
- ExitEventArgs.cs
- FrugalList.cs
- IpcClientManager.cs
- SingleAnimationUsingKeyFrames.cs
- Processor.cs
- Aes.cs
- SimplePropertyEntry.cs
- Util.cs
- ArrayList.cs
- LinearKeyFrames.cs
- SmiGettersStream.cs
- SafeEventLogReadHandle.cs
- ToolStripInSituService.cs
- BaseContextMenu.cs
- TargetParameterCountException.cs
- DocumentsTrace.cs
- XmlLinkedNode.cs
- StateChangeEvent.cs
- FlowSwitchLink.cs
- RelationshipNavigation.cs
- ImageList.cs
- CombinedGeometry.cs
- HtmlTable.cs
- SQLByte.cs
- MultiplexingFormatMapping.cs
- InputLangChangeEvent.cs
- EntityDataSourceDesigner.cs
- CompilerInfo.cs
- CodeIdentifier.cs
- safex509handles.cs
- DbConnectionFactory.cs
- CheckBoxAutomationPeer.cs
- ActivityDesignerAccessibleObject.cs
- InheritanceContextChangedEventManager.cs
- StreamInfo.cs
- ChildTable.cs
- ChannelServices.cs
- ComponentChangedEvent.cs
- OleDbConnectionInternal.cs
- SmtpMail.cs
- Unit.cs
- HyperLinkStyle.cs
- PointAnimationUsingPath.cs
- ComponentChangingEvent.cs
- AliasGenerator.cs
- MarshalByValueComponent.cs
- Version.cs
- ConstraintStruct.cs
- ViewStateException.cs
- TextProperties.cs
- StorageEndPropertyMapping.cs
- RadioButtonRenderer.cs
- Control.cs
- TextMessageEncodingBindingElement.cs
- Type.cs
- EventItfInfo.cs
- ResourceManager.cs
- XmlSchemaCollection.cs
- RuntimeConfigLKG.cs
- Span.cs
- OleDbReferenceCollection.cs
- CheckBox.cs
- NamespaceMapping.cs
- AdRotator.cs
- DurableMessageDispatchInspector.cs
- UserNamePasswordValidator.cs
- InputLanguageProfileNotifySink.cs
- TdsParserSessionPool.cs
- ConstraintCollection.cs
- NegotiateStream.cs
- XmlReader.cs
- DataBindEngine.cs
- ProfileSection.cs
- Empty.cs
- Utils.cs
- XmlTextEncoder.cs
- CharacterBufferReference.cs
- ContextMenu.cs
- CryptoKeySecurity.cs
- CodeTypeMemberCollection.cs
- CodeChecksumPragma.cs
- HtmlShim.cs
- DoubleSumAggregationOperator.cs
- JapaneseLunisolarCalendar.cs
- KoreanLunisolarCalendar.cs
- ReferencedType.cs
- ContentFilePart.cs
- DesignerMetadata.cs
- control.ime.cs
- CodeCatchClause.cs
- __ComObject.cs
- TempEnvironment.cs
- cache.cs
- Error.cs