Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Hosting / ApplicationHost.cs / 2 / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaImporter.cs
- ExpressionCopier.cs
- JpegBitmapEncoder.cs
- CustomAttributeFormatException.cs
- MarshalDirectiveException.cs
- TableLayoutPanelBehavior.cs
- DesignerHelpers.cs
- SerializationInfoEnumerator.cs
- DiagnosticTraceSource.cs
- BitVector32.cs
- _LocalDataStoreMgr.cs
- NamedPipeAppDomainProtocolHandler.cs
- httpstaticobjectscollection.cs
- ObjectDataSourceMethodEventArgs.cs
- DataServiceQueryProvider.cs
- Exceptions.cs
- ReaderOutput.cs
- AstTree.cs
- NetworkInformationPermission.cs
- GenericTypeParameterConverter.cs
- CustomAssemblyResolver.cs
- BufferBuilder.cs
- EncoderParameters.cs
- DescendantBaseQuery.cs
- SEHException.cs
- RecognizedPhrase.cs
- ProfessionalColorTable.cs
- CannotUnloadAppDomainException.cs
- XsltContext.cs
- DispatcherObject.cs
- AnnotationHelper.cs
- WebBrowser.cs
- RuleSetReference.cs
- EventLogPropertySelector.cs
- _NativeSSPI.cs
- VideoDrawing.cs
- XmlBinaryReader.cs
- ArgumentNullException.cs
- DataGridViewCellStyleConverter.cs
- SharedPersonalizationStateInfo.cs
- BitmapDownload.cs
- SafeFindHandle.cs
- LoginCancelEventArgs.cs
- DoWorkEventArgs.cs
- HostedImpersonationContext.cs
- sitestring.cs
- AbstractDataSvcMapFileLoader.cs
- ClipboardData.cs
- CheckBoxAutomationPeer.cs
- FixedSOMElement.cs
- IndentedTextWriter.cs
- ListControl.cs
- StoryFragments.cs
- ProcessThread.cs
- XmlRawWriter.cs
- PropertyKey.cs
- TabControl.cs
- APCustomTypeDescriptor.cs
- MatrixCamera.cs
- XmlAtomicValue.cs
- SmtpSection.cs
- Wildcard.cs
- SqlCachedBuffer.cs
- ActiveDocumentEvent.cs
- OleDbRowUpdatedEvent.cs
- SpAudioStreamWrapper.cs
- DirectionalLight.cs
- WebBrowserHelper.cs
- Switch.cs
- TextBox.cs
- MeshGeometry3D.cs
- DataViewListener.cs
- panel.cs
- BufferedGraphicsContext.cs
- figurelengthconverter.cs
- InfoCardSymmetricAlgorithm.cs
- OpacityConverter.cs
- StaticTextPointer.cs
- recordstate.cs
- ColumnCollectionEditor.cs
- HandledMouseEvent.cs
- SynchronizationContext.cs
- BCLDebug.cs
- ArrayWithOffset.cs
- ToolStripAdornerWindowService.cs
- WsatTransactionFormatter.cs
- HtmlInputImage.cs
- SortQueryOperator.cs
- ManagementClass.cs
- PrintingPermissionAttribute.cs
- DirectoryGroupQuery.cs
- TemplatedMailWebEventProvider.cs
- DataSourceExpression.cs
- WsiProfilesElementCollection.cs
- RuleValidation.cs
- SqlBuilder.cs
- DataFormats.cs
- GridViewRowPresenter.cs
- TagNameToTypeMapper.cs
- UriSection.cs