Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Hosting / ApplicationHost.cs / 1305376 / 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; ////// 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
- SamlAttributeStatement.cs
- DomainConstraint.cs
- ProcessRequestAsyncResult.cs
- PermissionSetEnumerator.cs
- ValidateNames.cs
- XamlFigureLengthSerializer.cs
- ProfileBuildProvider.cs
- RtfFormatStack.cs
- PointLightBase.cs
- MetadataItemCollectionFactory.cs
- UpdateCompiler.cs
- ReturnType.cs
- XMLSchema.cs
- IHttpResponseInternal.cs
- ManagementEventArgs.cs
- WindowsBrush.cs
- RemoveStoryboard.cs
- OuterGlowBitmapEffect.cs
- GeometryHitTestResult.cs
- TextFormatterImp.cs
- TypeUtil.cs
- ImageSource.cs
- XmlAggregates.cs
- CodeDirectionExpression.cs
- FieldToken.cs
- CharacterMetrics.cs
- ModelUIElement3D.cs
- DataGridTable.cs
- SslSecurityTokenParameters.cs
- AvtEvent.cs
- DrawToolTipEventArgs.cs
- HierarchicalDataSourceIDConverter.cs
- Visual3D.cs
- WebControl.cs
- EndpointDiscoveryMetadata11.cs
- TypedDataSetSchemaImporterExtension.cs
- Vector.cs
- ReceiveActivityDesigner.cs
- ManagedWndProcTracker.cs
- __TransparentProxy.cs
- TypedAsyncResult.cs
- QilXmlWriter.cs
- ChannelEndpointElement.cs
- SocketManager.cs
- QilXmlWriter.cs
- ProfileBuildProvider.cs
- ReadOnlyDataSourceView.cs
- TokenFactoryFactory.cs
- GridViewRowEventArgs.cs
- DllHostedComPlusServiceHost.cs
- indexingfiltermarshaler.cs
- NextPreviousPagerField.cs
- BitmapPalettes.cs
- StatusBarPanel.cs
- DynamicResourceExtension.cs
- TreeWalkHelper.cs
- TimeSpanValidatorAttribute.cs
- ADConnectionHelper.cs
- EmptyTextWriter.cs
- ProgressBarBrushConverter.cs
- SqlGatherConsumedAliases.cs
- ControlFilterExpression.cs
- GroupDescription.cs
- RequestNavigateEventArgs.cs
- TabControlEvent.cs
- CursorConverter.cs
- XPathChildIterator.cs
- SearchExpression.cs
- PageContentAsyncResult.cs
- TextFormatterImp.cs
- SmiMetaData.cs
- InternalControlCollection.cs
- ContractCodeDomInfo.cs
- CursorConverter.cs
- TemplateBamlTreeBuilder.cs
- LinkConverter.cs
- RestHandler.cs
- NamespaceMapping.cs
- Volatile.cs
- WorkItem.cs
- OleDbReferenceCollection.cs
- Vector3DAnimationUsingKeyFrames.cs
- RightsController.cs
- ConnectionAcceptor.cs
- TypeInfo.cs
- CustomErrorsSection.cs
- AsnEncodedData.cs
- ACE.cs
- ContentDisposition.cs
- ThemeableAttribute.cs
- EventMappingSettingsCollection.cs
- WebScriptMetadataMessageEncoderFactory.cs
- FrameAutomationPeer.cs
- AccessorTable.cs
- FontSizeConverter.cs
- GiveFeedbackEventArgs.cs
- Memoizer.cs
- DetailsViewInsertedEventArgs.cs
- TextElement.cs
- InputChannelAcceptor.cs