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
- HybridWebProxyFinder.cs
- StatusBarAutomationPeer.cs
- IssuedTokenServiceElement.cs
- ItemsControlAutomationPeer.cs
- embossbitmapeffect.cs
- PropertyDescriptorCollection.cs
- TextTreeInsertElementUndoUnit.cs
- TargetParameterCountException.cs
- StructuredProperty.cs
- XmlSchemaValidationException.cs
- DataGridDesigner.cs
- DataGridViewDataErrorEventArgs.cs
- CompressionTransform.cs
- MarginsConverter.cs
- RemotingSurrogateSelector.cs
- InputScopeNameConverter.cs
- DataReceivedEventArgs.cs
- AdPostCacheSubstitution.cs
- X509Certificate2.cs
- DataGridViewDataErrorEventArgs.cs
- CorrelationRequestContext.cs
- HtmlGenericControl.cs
- ControlIdConverter.cs
- PersistenceIOParticipant.cs
- Schedule.cs
- Logging.cs
- PropertyMapper.cs
- PackagingUtilities.cs
- DocumentCollection.cs
- DocumentSchemaValidator.cs
- OdbcErrorCollection.cs
- WebPartCloseVerb.cs
- LoginDesignerUtil.cs
- Transform.cs
- FieldNameLookup.cs
- TextDecorationCollection.cs
- FormClosingEvent.cs
- RequestQueue.cs
- SoapReflectionImporter.cs
- RelatedView.cs
- TokenBasedSet.cs
- InvokeWebService.cs
- UrlMapping.cs
- unitconverter.cs
- RuleSetReference.cs
- PostBackOptions.cs
- UIElement3DAutomationPeer.cs
- Solver.cs
- PermissionRequestEvidence.cs
- _AuthenticationState.cs
- XDRSchema.cs
- Expression.cs
- SignatureSummaryDialog.cs
- StrokeCollection2.cs
- ManipulationDelta.cs
- ControlType.cs
- Ref.cs
- ClientTargetSection.cs
- PTManager.cs
- TearOffProxy.cs
- ByteStack.cs
- ObjectDataSourceEventArgs.cs
- _LoggingObject.cs
- PageContentAsyncResult.cs
- CodeAssignStatement.cs
- IdentifierElement.cs
- AuthorizationRule.cs
- CloudCollection.cs
- AuthenticationConfig.cs
- InstanceOwner.cs
- XmlNodeWriter.cs
- ValuePatternIdentifiers.cs
- ServiceTimeoutsElement.cs
- Win32Exception.cs
- AdornerPresentationContext.cs
- XmlQueryCardinality.cs
- ApplicationActivator.cs
- DataExpression.cs
- ProxyWebPartConnectionCollection.cs
- DependsOnAttribute.cs
- MailWebEventProvider.cs
- TextEndOfSegment.cs
- CallSiteHelpers.cs
- DataServiceRequestOfT.cs
- ElasticEase.cs
- __Filters.cs
- DataProtection.cs
- XmlParserContext.cs
- TraceContextRecord.cs
- WebPartVerb.cs
- DataGridViewCellStateChangedEventArgs.cs
- XmlProcessingInstruction.cs
- SponsorHelper.cs
- WsdlHelpGeneratorElement.cs
- BitmapEffectInputConnector.cs
- SafeThreadHandle.cs
- RegexCompiler.cs
- SqlRecordBuffer.cs
- FontWeight.cs
- reliableinputsessionchannel.cs