* BaseHttpServlet.cs: added .appStartTime value to app domain
authorVladimir Krasnov <krasnov@mono-cvs.ximian.com>
Tue, 6 Mar 2007 17:18:10 +0000 (17:18 -0000)
committerVladimir Krasnov <krasnov@mono-cvs.ximian.com>
Tue, 6 Mar 2007 17:18:10 +0000 (17:18 -0000)
svn path=/trunk/mcs/; revision=73827

mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/BaseHttpServlet.cs
mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/ChangeLog

index 4c673b7e5ed896b39ba823aded5eb74ae8cf7c15..440df05fc2d776a31d8ed3947b59561158658e53 100644 (file)
@@ -217,6 +217,9 @@ namespace Mainsoft.Web.Hosting
 
                                servletDomain.SetData ("DataDirectory", dataDirectory);
 
+                               if (config.getServletContext ().getRealPath ("/") == null)
+                                       servletDomain.SetData(".appStartTime", DateTime.UtcNow);
+
                                // The BaseDir is the full path to the physical dir of the app
                                // and allows the application to modify files in the case of
                                // open deployment.
index 88fd0e1caf3ae2edaf983adb35afa38f5a622cbe..a0f918cb81dde95f986f0e5c9a763a14fca8d445 100644 (file)
@@ -1,3 +1,7 @@
+2007-03-06  Vladimir Krasnov  <vladimirk@mainsoft.com>\r
+\r
+       * BaseHttpServlet.cs: added .appStartTime value to app domain\r
+\r
 2007-02-20  Vladimir Krasnov  <vladimirk@mainsoft.com>\r
 \r
        * ServletWorkerRequest.jvm.cs: fixed MapPath, made it able to return\r