Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MiniAssembly.cs
- ScrollChangedEventArgs.cs
- DefaultTextStoreTextComposition.cs
- Point3DAnimationUsingKeyFrames.cs
- OutOfMemoryException.cs
- FixedSchema.cs
- CallbackValidatorAttribute.cs
- ObjectIDGenerator.cs
- WorkflowViewStateService.cs
- UrlPath.cs
- SafeNativeMethodsMilCoreApi.cs
- ProjectedSlot.cs
- SqlDelegatedTransaction.cs
- Zone.cs
- BinaryParser.cs
- WindowPattern.cs
- Parser.cs
- DataListItem.cs
- SingleAnimationUsingKeyFrames.cs
- basevalidator.cs
- PathFigure.cs
- RoleGroupCollection.cs
- SoapAttributeOverrides.cs
- SafeCryptoHandles.cs
- XomlCompilerHelpers.cs
- ProcessModelSection.cs
- ToolStripInSituService.cs
- PageThemeParser.cs
- ModuleBuilder.cs
- MetadataItemEmitter.cs
- FastEncoderWindow.cs
- Rotation3DAnimationUsingKeyFrames.cs
- PropertyGridEditorPart.cs
- StringTraceRecord.cs
- CustomError.cs
- WpfKnownTypeInvoker.cs
- AsymmetricAlgorithm.cs
- Stack.cs
- XmlAttributeCollection.cs
- TextDecoration.cs
- HashCryptoHandle.cs
- ToolStripPanelRenderEventArgs.cs
- LinearQuaternionKeyFrame.cs
- RequestValidator.cs
- FixedSchema.cs
- EventProviderWriter.cs
- RoleGroupCollection.cs
- BaseResourcesBuildProvider.cs
- XmlSchemaProviderAttribute.cs
- HtmlMobileTextWriter.cs
- BindingSource.cs
- Debug.cs
- ProxyHwnd.cs
- ListView.cs
- UnmanagedMarshal.cs
- CodeValidator.cs
- EntityDataSourceChangedEventArgs.cs
- ToolStripSplitButton.cs
- XmlDocument.cs
- ListItemsCollectionEditor.cs
- SrgsDocument.cs
- RangeValidator.cs
- XamlRtfConverter.cs
- EmptyImpersonationContext.cs
- TableLayoutStyle.cs
- CodeDOMUtility.cs
- NativeRecognizer.cs
- ScrollViewer.cs
- CompleteWizardStep.cs
- TogglePatternIdentifiers.cs
- ConstructorNeedsTagAttribute.cs
- HtmlShimManager.cs
- ResourceDefaultValueAttribute.cs
- CopyOfAction.cs
- FieldBuilder.cs
- PartialCachingControl.cs
- Matrix.cs
- AmbiguousMatchException.cs
- TriggerBase.cs
- FileAuthorizationModule.cs
- PagePropertiesChangingEventArgs.cs
- StoreItemCollection.cs
- XmlNamespaceManager.cs
- SimpleBitVector32.cs
- SystemIPInterfaceProperties.cs
- HebrewNumber.cs
- FileChangesMonitor.cs
- ReachPageContentSerializerAsync.cs
- HttpRuntimeSection.cs
- ListCollectionView.cs
- WebAdminConfigurationHelper.cs
- PeerCollaboration.cs
- BoundingRectTracker.cs
- XmlUnspecifiedAttribute.cs
- WebBrowserEvent.cs
- WebScriptMetadataFormatter.cs
- TextComposition.cs
- PaperSource.cs
- StdRegProviderWrapper.cs
- StructuralCache.cs