Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Hosting / ApplicationHost.cs / 2 / ApplicationHost.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Hosting { using System; using System.IO; using System.Collections; using System.Globalization; using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Web; using System.Web.Configuration; using System.Web.Util; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ApplicationHost { private ApplicationHost() { } /* * Creates new app domain for hosting of ASP.NET apps with a * user defined 'host' object in it. The host is needed to make * cross-domain calls to process requests in the host's app domain */ ///[To be supplied.] ////// [SecurityPermission(SecurityAction.Demand, Unrestricted=true)] public static Object CreateApplicationHost(Type hostType, String virtualDir, String physicalDir) { #if !FEATURE_PAL // FEATURE_PAL does not require PlatformID.Win32NT if (Environment.OSVersion.Platform != PlatformID.Win32NT) throw new PlatformNotSupportedException(SR.GetString(SR.RequiresNT)); #else // !FEATURE_PAL // FEATURE_PAL #endif // !FEATURE_PAL if (!StringUtil.StringEndsWith(physicalDir, Path.DirectorySeparatorChar)) physicalDir = physicalDir + Path.DirectorySeparatorChar; ApplicationManager appManager = ApplicationManager.GetApplicationManager(); String appId = (String.Concat(virtualDir, physicalDir).GetHashCode()).ToString("x"); ObjectHandle h = appManager.CreateInstanceInNewWorkerAppDomain( hostType, appId, VirtualPath.CreateNonRelative(virtualDir), physicalDir); return h.Unwrap(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Hosting { using System; using System.IO; using System.Collections; using System.Globalization; using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Web; using System.Web.Configuration; using System.Web.Util; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ApplicationHost { private ApplicationHost() { } /* * Creates new app domain for hosting of ASP.NET apps with a * user defined 'host' object in it. The host is needed to make * cross-domain calls to process requests in the host's app domain */ ///[To be supplied.] ////// [SecurityPermission(SecurityAction.Demand, Unrestricted=true)] public static Object CreateApplicationHost(Type hostType, String virtualDir, String physicalDir) { #if !FEATURE_PAL // FEATURE_PAL does not require PlatformID.Win32NT if (Environment.OSVersion.Platform != PlatformID.Win32NT) throw new PlatformNotSupportedException(SR.GetString(SR.RequiresNT)); #else // !FEATURE_PAL // FEATURE_PAL #endif // !FEATURE_PAL if (!StringUtil.StringEndsWith(physicalDir, Path.DirectorySeparatorChar)) physicalDir = physicalDir + Path.DirectorySeparatorChar; ApplicationManager appManager = ApplicationManager.GetApplicationManager(); String appId = (String.Concat(virtualDir, physicalDir).GetHashCode()).ToString("x"); ObjectHandle h = appManager.CreateInstanceInNewWorkerAppDomain( hostType, appId, VirtualPath.CreateNonRelative(virtualDir), physicalDir); return h.Unwrap(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SessionViewState.cs
- recordstatefactory.cs
- followingsibling.cs
- ObjectListField.cs
- SoapSchemaMember.cs
- ImmComposition.cs
- Propagator.cs
- ScriptControl.cs
- HttpInputStream.cs
- AffineTransform3D.cs
- BitStack.cs
- TransformDescriptor.cs
- NonVisualControlAttribute.cs
- SiteMapPath.cs
- DesignerInterfaces.cs
- WebPartVerb.cs
- BindableAttribute.cs
- PropertyEmitter.cs
- AVElementHelper.cs
- GlyphShapingProperties.cs
- EntityDataSourceSelectingEventArgs.cs
- CompareInfo.cs
- CallId.cs
- SchemaNamespaceManager.cs
- PageParserFilter.cs
- AsyncCompletedEventArgs.cs
- ComboBoxDesigner.cs
- EmptyEnumerator.cs
- PeerObject.cs
- EventHandlerService.cs
- ClosableStream.cs
- LockRecoveryTask.cs
- NamedServiceModelExtensionCollectionElement.cs
- Directory.cs
- CodeCatchClause.cs
- MeasureItemEvent.cs
- TdsRecordBufferSetter.cs
- Attachment.cs
- RecognizerInfo.cs
- TextContainer.cs
- RenderingBiasValidation.cs
- MemberMaps.cs
- ArithmeticException.cs
- EventOpcode.cs
- DataControlFieldCell.cs
- ComponentManagerBroker.cs
- HttpContext.cs
- SelectionList.cs
- HierarchicalDataSourceControl.cs
- Schedule.cs
- XmlDataImplementation.cs
- HwndKeyboardInputProvider.cs
- ObjectQuery_EntitySqlExtensions.cs
- SupportingTokenSpecification.cs
- BitmapEffect.cs
- ConstraintStruct.cs
- ListViewGroupConverter.cs
- EventRoute.cs
- Event.cs
- InstanceKeyView.cs
- UInt16Converter.cs
- X509Certificate2.cs
- DecimalConverter.cs
- PerspectiveCamera.cs
- RoleService.cs
- FixedBufferAttribute.cs
- ProfileManager.cs
- XPathMultyIterator.cs
- LinqDataSource.cs
- JoinTreeSlot.cs
- CommonDialog.cs
- Lasso.cs
- SchemaName.cs
- UpdateException.cs
- ZipIOLocalFileHeader.cs
- tibetanshape.cs
- FormViewInsertedEventArgs.cs
- InstanceKeyNotReadyException.cs
- ToolboxDataAttribute.cs
- unsafeIndexingFilterStream.cs
- ProviderManager.cs
- PrimitiveList.cs
- Timer.cs
- ScriptReferenceEventArgs.cs
- ConfigurationElementProperty.cs
- SoapClientProtocol.cs
- CodeTypeDeclaration.cs
- BindableTemplateBuilder.cs
- XmlWrappingReader.cs
- SafeRightsManagementEnvironmentHandle.cs
- SapiGrammar.cs
- HttpListenerRequest.cs
- WizardPanel.cs
- PackageRelationshipCollection.cs
- IUnknownConstantAttribute.cs
- XmlSchemaProviderAttribute.cs
- RuntimeConfigLKG.cs
- Permission.cs
- Random.cs
- InvokeSchedule.cs