using MediaBrowser.Model.System; using System; namespace MediaBrowser.Common.Kernel { /// /// Interface IKernel /// public interface IKernel { /// /// Occurs when [has pending restart changed]. /// event EventHandler HasPendingRestartChanged; /// /// Gets the kernel context. /// /// The kernel context. KernelContext KernelContext { get; } /// /// Inits this instance. /// /// Task. void Init(); /// /// Gets or sets a value indicating whether this instance has pending kernel reload. /// /// true if this instance has pending kernel reload; otherwise, false. bool HasPendingRestart { get; } /// /// Gets the system status. /// /// SystemInfo. SystemInfo GetSystemInfo(); /// /// Called when [application updated]. /// /// The new version. void OnApplicationUpdated(Version newVersion); /// /// Gets the name of the web application. /// /// The name of the web application. string WebApplicationName { get; } /// /// Performs the pending restart. /// void PerformPendingRestart(); /// /// Gets the UDP server port number. /// /// The UDP server port number. int UdpServerPortNumber { get; } /// /// Gets the HTTP server URL prefix. /// /// The HTTP server URL prefix. string HttpServerUrlPrefix { get; } /// /// Notifies the pending restart. /// void NotifyPendingRestart(); } }