Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OleCmdHelper.cs
- RegexMatchCollection.cs
- SafeHandles.cs
- ServiceDescription.cs
- SafePEFileHandle.cs
- ImageListUtils.cs
- ServerProtocol.cs
- SqlRowUpdatedEvent.cs
- XmlSchemaInclude.cs
- TypeExtensionConverter.cs
- TripleDES.cs
- RankException.cs
- _CacheStreams.cs
- OdbcError.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- PropertyCollection.cs
- ProxyHwnd.cs
- MulticastNotSupportedException.cs
- DataGridViewRowCollection.cs
- TraceHandlerErrorFormatter.cs
- DefaultCommandConverter.cs
- CodeSubDirectory.cs
- WebControlToolBoxItem.cs
- PathFigureCollection.cs
- SqlCacheDependencySection.cs
- FileController.cs
- SelectionItemPattern.cs
- ComAdminWrapper.cs
- PtsHelper.cs
- WebEncodingValidator.cs
- FlowLayout.cs
- MenuEventArgs.cs
- InlineCollection.cs
- CaseCqlBlock.cs
- PersonalizableAttribute.cs
- PngBitmapDecoder.cs
- ValidationSummary.cs
- TimeSpanStorage.cs
- ComAdminInterfaces.cs
- SQLRoleProvider.cs
- JsonWriterDelegator.cs
- SchemaImporterExtensionElementCollection.cs
- SpeakInfo.cs
- ToolStripSplitStackLayout.cs
- DataRelationPropertyDescriptor.cs
- ExceptionUtil.cs
- ToolBar.cs
- ItemContainerPattern.cs
- RadioButton.cs
- PlainXmlDeserializer.cs
- ButtonFlatAdapter.cs
- TabItemWrapperAutomationPeer.cs
- TextBoxBase.cs
- XmlSchemaObjectCollection.cs
- DisposableCollectionWrapper.cs
- Parser.cs
- ChangeDirector.cs
- CompensationHandlingFilter.cs
- WindowsListBox.cs
- WebPartCollection.cs
- ArgIterator.cs
- InstanceDescriptor.cs
- UpdateRecord.cs
- Preprocessor.cs
- Wildcard.cs
- DrawingContextDrawingContextWalker.cs
- ActivityTrace.cs
- LoginUtil.cs
- ResourceExpressionBuilder.cs
- Int32CollectionConverter.cs
- SecurityContextKeyIdentifierClause.cs
- StringReader.cs
- IndependentAnimationStorage.cs
- PublishLicense.cs
- IPGlobalProperties.cs
- TableLayoutSettingsTypeConverter.cs
- cache.cs
- ObjectAnimationBase.cs
- SourceSwitch.cs
- HtmlTableRow.cs
- FixedTextView.cs
- JsonCollectionDataContract.cs
- _NetRes.cs
- SingleAnimation.cs
- UniqueIdentifierService.cs
- RecommendedAsConfigurableAttribute.cs
- DocumentApplicationJournalEntry.cs
- Listbox.cs
- UriTemplateCompoundPathSegment.cs
- ToolStripContentPanel.cs
- InternalTypeHelper.cs
- PrintController.cs
- DataColumnMappingCollection.cs
- Header.cs
- ObjectSecurityT.cs
- DataGridViewRow.cs
- DefaultBindingPropertyAttribute.cs
- SHA1CryptoServiceProvider.cs
- BamlRecordReader.cs
- Validator.cs