Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Hosting / ApplicationHost.cs / 1 / 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. //------------------------------------------------------------------------------ //[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.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CalendarModeChangedEventArgs.cs
- XmlDocument.cs
- FileDialogPermission.cs
- ContentIterators.cs
- Subordinate.cs
- ConfigurationLoader.cs
- CodeIdentifier.cs
- ContentPlaceHolder.cs
- BeginStoryboard.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- Column.cs
- HuffCodec.cs
- DocumentOutline.cs
- CompensationHandlingFilter.cs
- ServiceSecurityAuditBehavior.cs
- DataGridViewBand.cs
- DecimalFormatter.cs
- ClassDataContract.cs
- OleDbDataAdapter.cs
- SessionStateContainer.cs
- IdentityModelDictionary.cs
- DaylightTime.cs
- AutoGeneratedField.cs
- DateTimeOffset.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ComPlusServiceLoader.cs
- PageSettings.cs
- PersistChildrenAttribute.cs
- safemediahandle.cs
- Options.cs
- SqlNotificationRequest.cs
- Graphics.cs
- SqlUserDefinedTypeAttribute.cs
- TraceShell.cs
- AssertSection.cs
- RolePrincipal.cs
- UnsafeNativeMethodsPenimc.cs
- MemoryFailPoint.cs
- Padding.cs
- SequentialOutput.cs
- XamlToRtfWriter.cs
- XmlReader.cs
- TimeSpanValidatorAttribute.cs
- WhitespaceSignificantCollectionAttribute.cs
- Inline.cs
- OleDbWrapper.cs
- Util.cs
- ListView.cs
- ProcessHostServerConfig.cs
- TreeNodeClickEventArgs.cs
- HitTestDrawingContextWalker.cs
- TailCallAnalyzer.cs
- XmlConvert.cs
- SamlAdvice.cs
- MetabaseReader.cs
- DocumentOrderQuery.cs
- XmlSchemaAnnotated.cs
- XsdDuration.cs
- Application.cs
- ComMethodElementCollection.cs
- OleDbReferenceCollection.cs
- MembershipUser.cs
- FirstMatchCodeGroup.cs
- DataGridViewElement.cs
- HeaderCollection.cs
- TextElement.cs
- LambdaCompiler.Address.cs
- AuthStoreRoleProvider.cs
- SqlUtils.cs
- ActivityContext.cs
- PageHandlerFactory.cs
- ExportOptions.cs
- CodeTypeReference.cs
- SqlCacheDependencySection.cs
- ObjectStateFormatter.cs
- NavigatingCancelEventArgs.cs
- ManagementObject.cs
- TreePrinter.cs
- Baml2006Reader.cs
- XmlTextReaderImplHelpers.cs
- CultureTableRecord.cs
- ControlParameter.cs
- Command.cs
- ArrayElementGridEntry.cs
- WebPartConnection.cs
- DataSourceView.cs
- HyperLinkField.cs
- FileDataSourceCache.cs
- ScriptingProfileServiceSection.cs
- StorageMappingItemLoader.cs
- SiteMapNodeItemEventArgs.cs
- TextTreeTextNode.cs
- CodeBinaryOperatorExpression.cs
- LiteralTextParser.cs
- RTTrackingProfile.cs
- RedirectionProxy.cs
- DuplicateWaitObjectException.cs
- DesignerTextBoxAdapter.cs
- XomlCompilerResults.cs
- SqlNamer.cs