#pragma warning disable CS1591
using System;
using System.Collections.Generic;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Common;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.System;
using Microsoft.AspNetCore.Http;
namespace MediaBrowser.Controller
{
///
/// Interface IServerApplicationHost.
///
public interface IServerApplicationHost : IApplicationHost
{
event EventHandler HasUpdateAvailableChanged;
bool CoreStartupHasCompleted { get; }
bool CanLaunchWebBrowser { get; }
///
/// Gets the HTTP server port.
///
/// The HTTP server port.
int HttpPort { get; }
///
/// Gets the HTTPS port.
///
/// The HTTPS port.
int HttpsPort { get; }
///
/// Gets a value indicating whether the server should listen on an HTTPS port.
///
bool ListenWithHttps { get; }
///
/// Gets a value indicating whether this instance has update available.
///
/// true if this instance has update available; otherwise, false.
bool HasUpdateAvailable { get; }
///
/// Gets the name of the friendly.
///
/// The name of the friendly.
string FriendlyName { get; }
///
/// Gets the configured published server url.
///
Uri PublishedServerUrl { get; }
///
/// Gets the system info.
///
/// The originator of the request.
/// SystemInfo.
SystemInfo GetSystemInfo(IPAddress source);
PublicSystemInfo GetPublicSystemInfo(IPAddress address);
///
/// Gets a URL specific for the request.
///
/// The instance.
/// Optional port number.
/// An accessible URL.
string GetSmartApiUrl(HttpRequest request, int? port = null);
///
/// Gets a URL specific for the request.
///
/// The remote of the connection.
/// Optional port number.
/// An accessible URL.
string GetSmartApiUrl(IPAddress remoteAddr, int? port = null);
///
/// Gets a URL specific for the request.
///
/// The hostname used in the connection.
/// Optional port number.
/// An accessible URL.
string GetSmartApiUrl(string hostname, int? port = null);
///
/// Gets a localhost URL that can be used to access the API using the loop-back IP address.
/// over HTTP (not HTTPS).
///
/// The API URL.
string GetLoopbackHttpApiUrl();
///
/// Gets a local (LAN) URL that can be used to access the API.
/// Note: if passing non-null scheme or port it is up to the caller to ensure they form the correct pair.
///
/// The hostname to use in the URL.
///
/// The scheme to use for the URL. If null, the scheme will be selected automatically,
/// preferring HTTPS, if available.
///
///
/// The port to use for the URL. If null, the port will be selected automatically,
/// preferring the HTTPS port, if available.
///
/// The API URL.
string GetLocalApiUrl(string hostname, string scheme = null, int? port = null);
///
/// Open a URL in an external browser window.
///
/// The URL to open.
/// is false.
void LaunchUrl(string url);
IEnumerable GetWakeOnLanInfo();
string ExpandVirtualPath(string path);
string ReverseVirtualPath(string path);
}
}