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
- DesignerForm.cs
- CodeTypeMember.cs
- WinFormsSecurity.cs
- GradientSpreadMethodValidation.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ChangeDirector.cs
- unsafenativemethodsother.cs
- XPathEmptyIterator.cs
- ApplicationException.cs
- MappingModelBuildProvider.cs
- ExportOptions.cs
- TableParagraph.cs
- DataTable.cs
- CultureSpecificStringDictionary.cs
- versioninfo.cs
- StreamInfo.cs
- CodeTypeMember.cs
- TraceXPathNavigator.cs
- RtfNavigator.cs
- TransactionException.cs
- Viewport3DAutomationPeer.cs
- BaseCodePageEncoding.cs
- GeneralTransform3DTo2D.cs
- InstallerTypeAttribute.cs
- MailDefinition.cs
- Debugger.cs
- CharacterMetricsDictionary.cs
- CompiledRegexRunner.cs
- PaperSource.cs
- DataGridAddNewRow.cs
- SoapFaultCodes.cs
- URL.cs
- HttpConfigurationSystem.cs
- MessageDirection.cs
- UICuesEvent.cs
- PerformanceCounterManager.cs
- JsonQNameDataContract.cs
- RoutedEventArgs.cs
- WebBrowserNavigatedEventHandler.cs
- PlacementWorkspace.cs
- BamlResourceContent.cs
- AlternateView.cs
- AccessDataSourceView.cs
- QuotedStringWriteStateInfo.cs
- BevelBitmapEffect.cs
- CanExecuteRoutedEventArgs.cs
- XmlUtf8RawTextWriter.cs
- PropertyEmitter.cs
- DataPointer.cs
- ColumnMap.cs
- COM2Enum.cs
- Enumerable.cs
- BinHexDecoder.cs
- OutputWindow.cs
- MessageDecoder.cs
- AffineTransform3D.cs
- ConnectionManager.cs
- Journaling.cs
- InputLanguageCollection.cs
- CodeDOMUtility.cs
- ApplyImportsAction.cs
- FunctionNode.cs
- MultiBindingExpression.cs
- SqlXmlStorage.cs
- MessageSmuggler.cs
- CultureMapper.cs
- XmlBaseWriter.cs
- Config.cs
- HttpHeaderCollection.cs
- RepeatInfo.cs
- WsatEtwTraceListener.cs
- NameNode.cs
- HostedTransportConfigurationManager.cs
- StructuralCache.cs
- ConfigurationPermission.cs
- PropertyDescriptorGridEntry.cs
- AppDomainGrammarProxy.cs
- BigInt.cs
- ServiceNameElement.cs
- PartialCachingControl.cs
- ViewGenerator.cs
- OleDbParameter.cs
- ErrorStyle.cs
- TextRangeAdaptor.cs
- WebBodyFormatMessageProperty.cs
- InstanceStore.cs
- FragmentQuery.cs
- PathFigure.cs
- PerformanceCounterNameAttribute.cs
- Trace.cs
- Point4D.cs
- ProcessHostServerConfig.cs
- CultureInfo.cs
- MiniAssembly.cs
- OptimalTextSource.cs
- AssociationType.cs
- MimeFormatExtensions.cs
- LinearKeyFrames.cs
- EventLogTraceListener.cs
- SecondaryIndexList.cs