Code:
/ FX-1434 / FX-1434 / 1.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
- UpdatePanelTriggerCollection.cs
- ImageCodecInfoPrivate.cs
- ResourceDescriptionAttribute.cs
- Viewport3DVisual.cs
- FieldToken.cs
- LinqMaximalSubtreeNominator.cs
- DbParameterCollection.cs
- DocumentXPathNavigator.cs
- WeakReferenceList.cs
- CacheVirtualItemsEvent.cs
- OracleEncoding.cs
- DataKeyCollection.cs
- TypeDescriptor.cs
- _Connection.cs
- MetaType.cs
- storepermission.cs
- ExtensionMethods.cs
- TextRunCache.cs
- BitmapEffectDrawing.cs
- SmtpAuthenticationManager.cs
- GeneralTransform3D.cs
- XslNumber.cs
- EncoderParameter.cs
- SecurityRuntime.cs
- BoolLiteral.cs
- OperationAbortedException.cs
- NotCondition.cs
- MethodAccessException.cs
- ToolboxItemAttribute.cs
- AggregationMinMaxHelpers.cs
- DbTypeMap.cs
- PersistenceProviderBehavior.cs
- PopOutPanel.cs
- ToolboxDataAttribute.cs
- CurrentTimeZone.cs
- InputLangChangeEvent.cs
- Merger.cs
- GatewayDefinition.cs
- NodeCounter.cs
- TripleDESCryptoServiceProvider.cs
- GridViewRowCollection.cs
- ExpressionBuilder.cs
- HttpHandlerAction.cs
- CompilerWrapper.cs
- TypeProvider.cs
- RemoteWebConfigurationHostServer.cs
- RemotingService.cs
- PreviewPrintController.cs
- Span.cs
- UrlMappingCollection.cs
- DBDataPermission.cs
- HttpWrapper.cs
- GZipStream.cs
- ScriptRegistrationManager.cs
- DataFieldCollectionEditor.cs
- CustomTokenProvider.cs
- BaseTemplateParser.cs
- IArgumentProvider.cs
- SqlInternalConnectionTds.cs
- XmlTextReaderImplHelpers.cs
- ScrollBar.cs
- ZipIOLocalFileDataDescriptor.cs
- Selection.cs
- XDeferredAxisSource.cs
- PublisherIdentityPermission.cs
- WindowsToolbar.cs
- PopOutPanel.cs
- Column.cs
- SplayTreeNode.cs
- IisTraceWebEventProvider.cs
- ParseHttpDate.cs
- LogPolicy.cs
- UrlPath.cs
- ProfileElement.cs
- ArgumentException.cs
- KerberosSecurityTokenProvider.cs
- Graph.cs
- DataSysAttribute.cs
- HtmlInputPassword.cs
- VerificationException.cs
- BaseHashHelper.cs
- HandledEventArgs.cs
- ResourceReferenceKeyNotFoundException.cs
- AppSettingsExpressionBuilder.cs
- GroupStyle.cs
- XXXInfos.cs
- FilterException.cs
- DataRowComparer.cs
- PageBuildProvider.cs
- ReaderWriterLockWrapper.cs
- TypeTypeConverter.cs
- WebCategoryAttribute.cs
- Itemizer.cs
- ResourcePool.cs
- EmptyStringExpandableObjectConverter.cs
- ServiceHttpModule.cs
- TextFormatterHost.cs
- BuildProvider.cs
- XmlSchemaImport.cs
- RuntimeWrappedException.cs