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
- FlowDocumentPageViewerAutomationPeer.cs
- PersistenceTypeAttribute.cs
- HtmlInputSubmit.cs
- InvokeBinder.cs
- WindowCollection.cs
- HttpCookiesSection.cs
- AnimationException.cs
- LowerCaseStringConverter.cs
- ReflectionTypeLoadException.cs
- WebPartDescription.cs
- ZipQueryOperator.cs
- ClientConvert.cs
- CollectionContainer.cs
- FirewallWrapper.cs
- BaseResourcesBuildProvider.cs
- BezierSegment.cs
- StateManagedCollection.cs
- ListViewDeleteEventArgs.cs
- GlyphCache.cs
- ScriptResourceDefinition.cs
- odbcmetadatafactory.cs
- peernodestatemanager.cs
- GPRECTF.cs
- _ShellExpression.cs
- StateDesigner.CommentLayoutGlyph.cs
- StrokeCollection.cs
- EntityDataSourceContainerNameItem.cs
- SqlCacheDependencyDatabaseCollection.cs
- ToolBar.cs
- NamespaceInfo.cs
- NavigationFailedEventArgs.cs
- OAVariantLib.cs
- MailWebEventProvider.cs
- CustomAttributeSerializer.cs
- Button.cs
- ErrorFormatterPage.cs
- RenameRuleObjectDialog.cs
- _LazyAsyncResult.cs
- PolyBezierSegmentFigureLogic.cs
- ScrollEventArgs.cs
- EventLog.cs
- validationstate.cs
- DataKeyCollection.cs
- PixelShader.cs
- ZoneLinkButton.cs
- MaskInputRejectedEventArgs.cs
- sqlcontext.cs
- MsmqHostedTransportManager.cs
- WindowsToolbarItemAsMenuItem.cs
- Calendar.cs
- LinkLabel.cs
- ToolBarPanel.cs
- FontCacheUtil.cs
- WindowsClaimSet.cs
- HttpResponseHeader.cs
- DoubleAnimationUsingKeyFrames.cs
- NullableIntMinMaxAggregationOperator.cs
- SoapInteropTypes.cs
- ListenerSingletonConnectionReader.cs
- ResourceWriter.cs
- ServerValidateEventArgs.cs
- DbQueryCommandTree.cs
- DependencyObjectProvider.cs
- TimeSpanValidator.cs
- HttpModuleActionCollection.cs
- ServiceObjectContainer.cs
- ThrowHelper.cs
- SuppressIldasmAttribute.cs
- HttpContextWrapper.cs
- Item.cs
- EUCJPEncoding.cs
- SupportingTokenAuthenticatorSpecification.cs
- GeneralTransform3DCollection.cs
- DesignBinding.cs
- UnregisterInfo.cs
- XmlBinaryReader.cs
- AuthorizationRule.cs
- UIElement.cs
- HtmlWindowCollection.cs
- ToggleButton.cs
- TripleDESCryptoServiceProvider.cs
- XXXInfos.cs
- Point3DKeyFrameCollection.cs
- DrawingCollection.cs
- Size3D.cs
- TypeAccessException.cs
- InstanceView.cs
- ComAdminInterfaces.cs
- MediaSystem.cs
- ContractListAdapter.cs
- CodeAttributeArgumentCollection.cs
- IndexedGlyphRun.cs
- CompatibleComparer.cs
- MouseActionValueSerializer.cs
- Coordinator.cs
- PeerCredential.cs
- RequiredFieldValidator.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- RoutingExtension.cs
- ActivityInterfaces.cs