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
- Vector3DCollectionConverter.cs
- ParseChildrenAsPropertiesAttribute.cs
- CodeDefaultValueExpression.cs
- Mapping.cs
- XmlSignificantWhitespace.cs
- KeyedQueue.cs
- GradientBrush.cs
- TraceHwndHost.cs
- DBNull.cs
- ContentValidator.cs
- ApplicationProxyInternal.cs
- Rect.cs
- JsonServiceDocumentSerializer.cs
- ReadonlyMessageFilter.cs
- SelectedGridItemChangedEvent.cs
- OdbcErrorCollection.cs
- SqlWebEventProvider.cs
- MobileTextWriter.cs
- DnsEndPoint.cs
- DefaultHttpHandler.cs
- StreamingContext.cs
- TrackingMemoryStream.cs
- UnmanagedMemoryStreamWrapper.cs
- FormParameter.cs
- SqlRowUpdatingEvent.cs
- IERequestCache.cs
- AvTraceDetails.cs
- GroupQuery.cs
- NumberEdit.cs
- BackgroundFormatInfo.cs
- ACE.cs
- Menu.cs
- SiteIdentityPermission.cs
- RectangleGeometry.cs
- DateBoldEvent.cs
- DSACryptoServiceProvider.cs
- PathNode.cs
- TreeView.cs
- loginstatus.cs
- LinqDataSourceContextEventArgs.cs
- WebAdminConfigurationHelper.cs
- XmlILIndex.cs
- BitmapEffectDrawingContextWalker.cs
- FixedSOMTable.cs
- ButtonAutomationPeer.cs
- SqlDataSourceView.cs
- MonitorWrapper.cs
- DaylightTime.cs
- Soap.cs
- RTLAwareMessageBox.cs
- Set.cs
- TraceContextRecord.cs
- HttpServerUtilityBase.cs
- ArgIterator.cs
- SplitterEvent.cs
- MetadataElement.cs
- ObjectItemNoOpAssemblyLoader.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- CompilationLock.cs
- NotSupportedException.cs
- HyperlinkAutomationPeer.cs
- StrongName.cs
- OdbcStatementHandle.cs
- ComPersistableTypeElementCollection.cs
- Registry.cs
- PeerResolverSettings.cs
- XmlUtilWriter.cs
- PackWebResponse.cs
- EventLogLink.cs
- WebPartManager.cs
- _LazyAsyncResult.cs
- BrowserDefinitionCollection.cs
- AlgoModule.cs
- FamilyTypeface.cs
- ObjectQuery.cs
- CacheSection.cs
- ISAPIRuntime.cs
- ImageButton.cs
- EmulateRecognizeCompletedEventArgs.cs
- LoginCancelEventArgs.cs
- PreviewControlDesigner.cs
- CreateRefExpr.cs
- GACIdentityPermission.cs
- OverflowException.cs
- OracleDataAdapter.cs
- BodyGlyph.cs
- ConnectionModeReader.cs
- ComplexTypeEmitter.cs
- DragDropManager.cs
- ConfigXmlElement.cs
- ColorIndependentAnimationStorage.cs
- SmiSettersStream.cs
- ToolStripButton.cs
- XmlCharCheckingReader.cs
- DiagnosticSection.cs
- TokenFactoryFactory.cs
- DecimalFormatter.cs
- SqlBinder.cs
- HtmlTextArea.cs
- SimpleBitVector32.cs