Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ApplicationServices / ApplicationServicesHostFactory.cs / 1 / ApplicationServicesHostFactory.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Diagnostics.CodeAnalysis; using System.Security.Permissions; using System.ServiceModel; using System.ServiceModel.Activation; namespace System.Web.ApplicationServices { [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] public class ApplicationServicesHostFactory : ServiceHostFactory { [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Justification = "Can't modify the base class.")] 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsListViewScroll.cs
- WmpBitmapEncoder.cs
- CachedTypeface.cs
- Enum.cs
- CacheSection.cs
- CodeDomLoader.cs
- ExtendLockAsyncResult.cs
- ToolStripItem.cs
- Rotation3DAnimationBase.cs
- SignerInfo.cs
- safex509handles.cs
- WebPartConnectionsConnectVerb.cs
- OdbcCommandBuilder.cs
- NeutralResourcesLanguageAttribute.cs
- _SafeNetHandles.cs
- TextBoxLine.cs
- ConfigXmlCDataSection.cs
- OutputBuffer.cs
- EdmComplexPropertyAttribute.cs
- TransportManager.cs
- XmlSchemaComplexContent.cs
- MemoryStream.cs
- Package.cs
- EntityDataSource.cs
- TextureBrush.cs
- storepermissionattribute.cs
- RuleSettings.cs
- KeyPullup.cs
- securestring.cs
- XmlRawWriter.cs
- GridViewRowCollection.cs
- RequestQueryProcessor.cs
- DefinitionUpdate.cs
- BitmapDownload.cs
- TextServicesPropertyRanges.cs
- DataGridTextBox.cs
- DurableInstanceContextProvider.cs
- WebBrowserUriTypeConverter.cs
- PlatformCulture.cs
- HtmlShimManager.cs
- HttpListenerResponse.cs
- DetailsViewModeEventArgs.cs
- KnownColorTable.cs
- SocketAddress.cs
- SkipStoryboardToFill.cs
- SQLSingleStorage.cs
- ToolTipService.cs
- Metafile.cs
- BitmapFrameDecode.cs
- QilBinary.cs
- TextServicesManager.cs
- WebEventCodes.cs
- MaskedTextProvider.cs
- SystemThemeKey.cs
- WindowsIdentity.cs
- CodeDefaultValueExpression.cs
- SqlUserDefinedAggregateAttribute.cs
- SecurityIdentifierConverter.cs
- Simplifier.cs
- XmlDataImplementation.cs
- RegexTypeEditor.cs
- ImpersonateTokenRef.cs
- OdbcInfoMessageEvent.cs
- handlecollector.cs
- EditorZoneBase.cs
- EntryWrittenEventArgs.cs
- BasePropertyDescriptor.cs
- MILUtilities.cs
- ThemeDictionaryExtension.cs
- MailMessageEventArgs.cs
- TableHeaderCell.cs
- XmlSchemaParticle.cs
- XmlValidatingReader.cs
- TextRunTypographyProperties.cs
- HelpEvent.cs
- MetabaseServerConfig.cs
- BuilderPropertyEntry.cs
- ClickablePoint.cs
- SslStreamSecurityElement.cs
- _ConnectionGroup.cs
- dsa.cs
- CfgSemanticTag.cs
- HuffModule.cs
- MediaTimeline.cs
- CodeLabeledStatement.cs
- MissingMemberException.cs
- PropertyToken.cs
- _LocalDataStore.cs
- EventLogEntryCollection.cs
- UnsafeNativeMethods.cs
- SqlCommandSet.cs
- TextEditorCharacters.cs
- ServiceDescriptionReflector.cs
- DatagridviewDisplayedBandsData.cs
- GridViewItemAutomationPeer.cs
- _ListenerAsyncResult.cs
- DBSqlParser.cs
- WebServiceTypeData.cs
- CustomSignedXml.cs
- MiniCustomAttributeInfo.cs