improve user experience by delegating application restart responsibility to the host user
This commit is contained in:
		@ -1,4 +1,4 @@
 | 
			
		||||
using Oqtane.Models;
 | 
			
		||||
using Oqtane.Models;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using System.Net.Http;
 | 
			
		||||
using Oqtane.Shared;
 | 
			
		||||
@ -25,5 +25,10 @@ namespace Oqtane.Services
 | 
			
		||||
        {
 | 
			
		||||
            return await GetJsonAsync<Installation>($"{ApiUrl}/upgrade");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public async Task RestartAsync()
 | 
			
		||||
        {
 | 
			
		||||
            await PostAsync($"{ApiUrl}/restart");
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
using Oqtane.Models;
 | 
			
		||||
using Oqtane.Models;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using Oqtane.Shared;
 | 
			
		||||
 | 
			
		||||
@ -9,5 +9,6 @@ namespace Oqtane.Services
 | 
			
		||||
        Task<Installation> IsInstalled();
 | 
			
		||||
        Task<Installation> Install(InstallConfig config);
 | 
			
		||||
        Task<Installation> Upgrade();
 | 
			
		||||
        Task RestartAsync();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user