Moved functionality from HostingEnvironment into IUmbracoApplicationLifetime, to not have duplicated logic

This commit is contained in:
Bjarke Berg
2020-02-27 11:13:57 +01:00
parent 0c56437ddd
commit c3fcbc0a72
5 changed files with 16 additions and 18 deletions

View File

@@ -2,7 +2,13 @@ namespace Umbraco.Net
{
public interface IUmbracoApplicationLifetime
{
/// <summary>
/// A value indicating whether the application is restarting after the current request.
/// </summary>
bool IsRestarting { get; }
/// <summary>
/// Terminates the current application. The application restarts the next time a request is received for it.
/// </summary>
void Restart();
}
}