jellyfin/MediaBrowser.Controller/IServerApplicationHost.cs

95 lines
2.9 KiB
C#
Raw Normal View History

2015-01-16 23:29:53 -05:00
using MediaBrowser.Common;
2013-03-07 00:34:00 -05:00
using MediaBrowser.Model.System;
2014-04-25 22:55:07 -04:00
using System;
2015-12-28 22:39:38 -05:00
using System.Collections.Generic;
using System.Net;
2016-06-19 02:18:29 -04:00
using System.Threading.Tasks;
2016-10-25 21:57:58 -04:00
using MediaBrowser.Model.Net;
2013-03-07 00:34:00 -05:00
namespace MediaBrowser.Controller
{
2013-04-19 16:27:02 -04:00
/// <summary>
/// Interface IServerApplicationHost
/// </summary>
2013-03-07 00:34:00 -05:00
public interface IServerApplicationHost : IApplicationHost
{
2014-04-25 22:55:07 -04:00
event EventHandler HasUpdateAvailableChanged;
2016-04-23 23:03:49 -04:00
2013-04-19 16:27:02 -04:00
/// <summary>
/// Gets the system info.
/// </summary>
/// <returns>SystemInfo.</returns>
2016-06-19 12:53:43 -04:00
Task<SystemInfo> GetSystemInfo();
2013-06-03 14:15:35 -04:00
2017-01-21 15:27:07 -05:00
/// <summary>
/// Gets a value indicating whether this instance is running as service.
/// </summary>
/// <value><c>true</c> if this instance is running as service; otherwise, <c>false</c>.</value>
bool IsRunningAsService { get; }
2014-01-05 20:59:21 -05:00
/// <summary>
/// Gets a value indicating whether [supports automatic run at startup].
/// </summary>
/// <value><c>true</c> if [supports automatic run at startup]; otherwise, <c>false</c>.</value>
bool SupportsAutoRunAtStartup { get; }
2014-03-17 00:25:11 -04:00
/// <summary>
/// Gets the HTTP server port.
/// </summary>
/// <value>The HTTP server port.</value>
2015-01-18 23:29:57 -05:00
int HttpPort { get; }
/// <summary>
/// Gets the HTTPS port.
/// </summary>
/// <value>The HTTPS port.</value>
int HttpsPort { get; }
/// <summary>
/// Gets a value indicating whether [supports HTTPS].
/// </summary>
/// <value><c>true</c> if [supports HTTPS]; otherwise, <c>false</c>.</value>
bool EnableHttps { get; }
2014-04-25 22:55:07 -04:00
/// <summary>
/// Gets a value indicating whether this instance has update available.
/// </summary>
/// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>
bool HasUpdateAvailable { get; }
2014-07-27 18:01:29 -04:00
/// <summary>
/// Gets the name of the friendly.
/// </summary>
/// <value>The name of the friendly.</value>
string FriendlyName { get; }
2014-09-16 23:04:10 -04:00
/// <summary>
2015-01-24 14:03:55 -05:00
/// Gets the local ip address.
2014-09-16 23:04:10 -04:00
/// </summary>
2015-01-24 14:03:55 -05:00
/// <value>The local ip address.</value>
2016-10-25 21:57:58 -04:00
Task<List<IpAddressInfo>> GetLocalIpAddresses();
2015-01-24 14:03:55 -05:00
/// <summary>
/// Gets the local API URL.
/// </summary>
/// <value>The local API URL.</value>
2016-06-19 02:18:29 -04:00
Task<string> GetLocalApiUrl();
2015-02-10 00:54:58 -05:00
/// <summary>
/// Gets the local API URL.
/// </summary>
/// <param name="host">The host.</param>
/// <returns>System.String.</returns>
string GetLocalApiUrl(string host);
2016-03-09 12:40:29 -05:00
/// <summary>
/// Gets the local API URL.
/// </summary>
2016-11-08 13:44:23 -05:00
string GetLocalApiUrl(IpAddressInfo address);
2016-04-23 23:03:49 -04:00
void LaunchUrl(string url);
2016-09-03 13:16:36 -04:00
void EnableLoopback(string appName);
2013-03-07 00:34:00 -05:00
}
}