using System;
namespace Umbraco.Cms.Core.Notifications
{
///
/// Notification that occurs at the very end of the Umbraco boot process (after all s are initialized).
///
///
public class UmbracoApplicationStartingNotification : IUmbracoApplicationLifetimeNotification
{
///
/// Initializes a new instance of the class.
///
/// The runtime level
[Obsolete("Use ctor with all params")]
public UmbracoApplicationStartingNotification(RuntimeLevel runtimeLevel)
: this(runtimeLevel, false)
{
// TODO: Remove this constructor in V10
}
///
/// Initializes a new instance of the class.
///
/// The runtime level
/// Indicates whether Umbraco is restarting.
public UmbracoApplicationStartingNotification(RuntimeLevel runtimeLevel, bool isRestarting)
{
RuntimeLevel = runtimeLevel;
IsRestarting = isRestarting;
}
///
/// Gets the runtime level.
///
///
/// The runtime level.
///
public RuntimeLevel RuntimeLevel { get; }
///
public bool IsRestarting { get; }
}
}