diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2006-02-28 20:30:03 +0300 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2006-02-28 20:30:03 +0300 |
commit | 03c23396357e305e9835a3d0f90a14f94300c10b (patch) | |
tree | 9139dc7f29d51bcc6f6e67f7eb6d8786fcd035f9 /mcs | |
parent | 70fdef1c23a95d9fc5525997df5cc924f6e1df0c (diff) |
2006-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ApplicationManager.cs: implemented ShutdownAll().
* HostingEnvironment.cs: remove MonoTODO.
svn path=/trunk/mcs/; revision=57406
Diffstat (limited to 'mcs')
3 files changed, 16 insertions, 3 deletions
diff --git a/mcs/class/System.Web/System.Web.Hosting/ApplicationManager.cs b/mcs/class/System.Web/System.Web.Hosting/ApplicationManager.cs index d6d41719fa3..db69516d8d0 100644 --- a/mcs/class/System.Web/System.Web.Hosting/ApplicationManager.cs +++ b/mcs/class/System.Web/System.Web.Hosting/ApplicationManager.cs @@ -179,10 +179,19 @@ namespace System.Web.Hosting { Interlocked.Increment (ref users); } - [MonoTODO] public void ShutdownAll () { - // == HostingEnvironment.InitiateShutdown in all appdomains managed by this instance + ICollection<string> coll = id_to_host.Keys; + string [] keys = new string [coll.Count]; + coll.CopyTo (keys, 0); + ApplicationInfo [] result = new ApplicationInfo [coll.Count]; + int i = 0; + foreach (string str in keys) { + BareApplicationHost host = id_to_host [str]; + host.Shutdown (); + } + + id_to_host.Clear (); } public void ShutdownApplication (string appId) diff --git a/mcs/class/System.Web/System.Web.Hosting/ChangeLog b/mcs/class/System.Web/System.Web.Hosting/ChangeLog index 34d2af117e3..de4e5e4438f 100644 --- a/mcs/class/System.Web/System.Web.Hosting/ChangeLog +++ b/mcs/class/System.Web/System.Web.Hosting/ChangeLog @@ -1,3 +1,8 @@ +2006-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * ApplicationManager.cs: implemented ShutdownAll(). + * HostingEnvironment.cs: remove MonoTODO. + 2006-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com> * BareApplicationHost.cs: class used as an entry point into each diff --git a/mcs/class/System.Web/System.Web.Hosting/HostingEnvironment.cs b/mcs/class/System.Web/System.Web.Hosting/HostingEnvironment.cs index 8e176e98def..92de7eda54b 100644 --- a/mcs/class/System.Web/System.Web.Hosting/HostingEnvironment.cs +++ b/mcs/class/System.Web/System.Web.Hosting/HostingEnvironment.cs @@ -95,7 +95,6 @@ namespace System.Web.Hosting { get { return vpath_provider; } } - [MonoTODO] public static void DecrementBusyCount () { Interlocked.Decrement (ref busy_count); |