improve user experience by delegating application restart responsibility to the host user

This commit is contained in:
Shaun Walker
2020-11-24 16:22:53 -05:00
parent fa59ec1b24
commit 5e42ab8cca
14 changed files with 53 additions and 53 deletions

View File

@ -26,15 +26,11 @@ namespace Oqtane.Infrastructure
_cache = cache;
}
public void InstallPackages(string folders, bool restart)
public void InstallPackages(string folders)
{
var webRootPath = _environment.WebRootPath;
var install = InstallPackages(folders, webRootPath);
if (install && restart)
if (!InstallPackages(folders, _environment.WebRootPath))
{
RestartApplication();
// error installing packages
}
}

View File

@ -1,8 +1,8 @@
namespace Oqtane.Infrastructure
namespace Oqtane.Infrastructure
{
public interface IInstallationManager
{
void InstallPackages(string folders, bool restart);
void InstallPackages(string folders);
void UpgradeFramework();
void RestartApplication();
}