Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / ApplicationServices / ApplicationServicesHostFactory.cs / 1305376 / ApplicationServicesHostFactory.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Diagnostics.CodeAnalysis; using System.ServiceModel; using System.ServiceModel.Activation; namespace System.Web.ApplicationServices { public class ApplicationServicesHostFactory : ServiceHostFactory { protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses) { ServiceHost host = null; if (typeof(ProfileService).Equals(serviceType)) { host = new ServiceHost(new ProfileService(), baseAddresses); } else if (typeof(RoleService).Equals(serviceType)) { host = new ServiceHost(new RoleService(), baseAddresses); } else if (typeof(AuthenticationService).Equals(serviceType)) { host = new ServiceHost(new AuthenticationService(), baseAddresses); } else { host = base.CreateServiceHost(serviceType, baseAddresses); } return host; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Diagnostics.CodeAnalysis; using System.ServiceModel; using System.ServiceModel.Activation; namespace System.Web.ApplicationServices { public class ApplicationServicesHostFactory : ServiceHostFactory { protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses) { ServiceHost host = null; if (typeof(ProfileService).Equals(serviceType)) { host = new ServiceHost(new ProfileService(), baseAddresses); } else if (typeof(RoleService).Equals(serviceType)) { host = new ServiceHost(new RoleService(), baseAddresses); } else if (typeof(AuthenticationService).Equals(serviceType)) { host = new ServiceHost(new AuthenticationService(), baseAddresses); } else { host = base.CreateServiceHost(serviceType, baseAddresses); } return host; } } } // 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
- Column.cs
- DBCSCodePageEncoding.cs
- EmbeddedMailObjectsCollection.cs
- mansign.cs
- NavigationWindow.cs
- MethodBuilderInstantiation.cs
- SizeChangedInfo.cs
- XmlSchemaGroupRef.cs
- PointAnimationClockResource.cs
- ContentElementAutomationPeer.cs
- SQlBooleanStorage.cs
- PtsCache.cs
- XmlSerializer.cs
- LinqDataSource.cs
- Style.cs
- ResourcePool.cs
- ConfigurationLockCollection.cs
- FrugalList.cs
- ClaimComparer.cs
- XmlSchemaAll.cs
- CodeChecksumPragma.cs
- PlainXmlWriter.cs
- NameValueFileSectionHandler.cs
- TableCell.cs
- Size3D.cs
- SymbolUsageManager.cs
- LogAppendAsyncResult.cs
- PropertyEntry.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- VisualState.cs
- GraphicsContainer.cs
- Lookup.cs
- ClockGroup.cs
- Brush.cs
- ListControlConvertEventArgs.cs
- SqlCommand.cs
- SafeNativeMethods.cs
- UriTemplateQueryValue.cs
- HtmlWindowCollection.cs
- ContainerControlDesigner.cs
- SortFieldComparer.cs
- ScriptManagerProxy.cs
- smtpconnection.cs
- SplineKeyFrames.cs
- NullableBoolConverter.cs
- PageParser.cs
- CodeDelegateInvokeExpression.cs
- ControlCollection.cs
- PageContentCollection.cs
- SelectionItemPattern.cs
- AuthenticationManager.cs
- AppDomainUnloadedException.cs
- HttpClientCertificate.cs
- elementinformation.cs
- BaseValidator.cs
- EventlogProvider.cs
- XPathNode.cs
- TextSpan.cs
- HttpCachePolicyElement.cs
- MetadataUtil.cs
- TemplateControlParser.cs
- ClientConfigurationHost.cs
- ListControl.cs
- HtmlInputRadioButton.cs
- HttpCookiesSection.cs
- NativeObjectSecurity.cs
- RowUpdatedEventArgs.cs
- AttributeSetAction.cs
- compensatingcollection.cs
- EnumValidator.cs
- SafeTimerHandle.cs
- DoWorkEventArgs.cs
- CategoryNameCollection.cs
- ConfigXmlReader.cs
- OrderedDictionary.cs
- PersonalizationState.cs
- DelayedRegex.cs
- TraceRecord.cs
- AttachedAnnotationChangedEventArgs.cs
- PolicyDesigner.cs
- DataSourceView.cs
- BmpBitmapDecoder.cs
- DBSqlParserColumn.cs
- AuthenticationModuleElement.cs
- TaiwanLunisolarCalendar.cs
- ResourceDescriptionAttribute.cs
- SafeUserTokenHandle.cs
- CompilerTypeWithParams.cs
- ServicePointManagerElement.cs
- AncestorChangedEventArgs.cs
- SourceLineInfo.cs
- AutoCompleteStringCollection.cs
- SymmetricKey.cs
- ComponentChangedEvent.cs
- CodeParameterDeclarationExpression.cs
- RectIndependentAnimationStorage.cs
- ImageAutomationPeer.cs
- OciLobLocator.cs
- SimpleHandlerBuildProvider.cs
- MultiPropertyDescriptorGridEntry.cs