Files
mono/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs
T
Patrik Torstensson 44f6e8a331 2002-04-10 Patrik Torstensson <[email protected]>
* ApplicationHost.cs: Test implementation to support testing.
        * SimpleWorkerRequest.cs: Rewrite and a almost full implementation.

svn path=/trunk/mcs/; revision=3733
2002-04-10 08:42:30 +00:00

34 lines
1.4 KiB
C#

//
// System.Web.Hosting.ApplicationHost
//
// Author:
// Patrik Torstensson ([email protected])
// (class signature from Bob Smith <[email protected]> (C) )
//
using System;
using System.Runtime.Remoting;
namespace System.Web.Hosting {
public sealed class ApplicationHost {
[MonoTODO("object CreateApplicationHost() Implement (dummy implementation right now)")]
public static object CreateApplicationHost(Type HostType, string VirtualPath, string PhysicalPath) {
// Construct and own AppDomain via DomainFactory? Can be good to have control over the web appdomain
// Dummy impl: just return a init object..
// TODO: Save in the created app domain....
System.Threading.Thread.GetDomain().SetData(".ASP.Net.App.VirtualPath", VirtualPath);
System.Threading.Thread.GetDomain().SetData(".ASP.Net.App.Path", PhysicalPath);
// TODO: Set to the install path of the runtime engine....
System.Threading.Thread.GetDomain().SetData(".ASP.Net.App.InstallPath", "");
// TODO: Create a name and id for the application...
// TODO: Copy all of the domain info to our new domain
ObjectHandle obj = System.Threading.Thread.GetDomain().CreateInstance(HostType.Module.Assembly.FullName, HostType.FullName);
return obj.Unwrap();
}
}
}