app pool restart thing out of the way and force dedicated app pool thing that I approved

This commit is contained in:
dev_amdtel 2013-05-03 17:59:19 +04:00
parent 580a898523
commit cfd0b39673
14 changed files with 767 additions and 396 deletions

View file

@ -1524,6 +1524,27 @@ namespace WebsitePanel.Providers.Web
}
}
// AppPool
public void ChangeAppPoolState(string siteId, AppPoolState state)
{
webObjectsSvc.ChangeAppPoolState(siteId, state);
}
public AppPoolState GetAppPoolState(string siteId)
{
using (ServerManager srvman = webObjectsSvc.GetServerManager())
{
return GetAppPoolState(srvman, siteId);
}
}
public AppPoolState GetAppPoolState(ServerManager srvman, string siteId)
{
return webObjectsSvc.GetAppPoolState(srvman, siteId);
}
/// <summary>
/// Checks whether virtual iisDirObject with supplied name under specified site exists.
/// </summary>