Interface IServerApplicationHost
Interface IServerApplicationHost
Assembly: MediaBrowser.Controller.dll
public interface IServerApplicationHost : IApplicationHost
Properties
Declaration
PackageVersionInfo AvailablePackage { get; }
Property Value
Declaration
Version AvailableVersion { get; }
Property Value
Type |
Description |
System.Version |
|
Declaration
bool CanLaunchWebBrowser { get; }
Property Value
Type |
Description |
System.Boolean |
|
Gets the codec providers.
Declaration
ICodecProvider[] CodecProviders { get; }
Property Value
Gets a value indicating whether [supports HTTPS].
Declaration
bool EnableHttps { get; }
Property Value
Type |
Description |
System.Boolean |
true if [supports HTTPS]; otherwise, false .
|
Gets the name of the friendly.
Declaration
string FriendlyName { get; }
Property Value
Type |
Description |
System.String |
The name of the friendly.
|
Declaration
bool HardwareAccelerationRequiresPremiere { get; }
Property Value
Type |
Description |
System.Boolean |
|
Gets a value indicating whether this instance has update available.
Declaration
bool HasUpdateAvailable { get; }
Property Value
Type |
Description |
System.Boolean |
true if this instance has update available; otherwise, false .
|
Gets the HTTP server port.
Declaration
Property Value
Type |
Description |
System.Int32 |
The HTTP server port.
|
Declaration
Property Value
Type |
Description |
System.Int32 |
The HTTPS port.
|
PluginConfigurationPages
Gets or sets the plugin configuration pages.
Declaration
IPluginConfigurationPage[] PluginConfigurationPages { get; }
Property Value
Gets a value indicating whether [supports automatic run at startup].
Declaration
bool SupportsAutoRunAtStartup { get; }
Property Value
Type |
Description |
System.Boolean |
true if [supports automatic run at startup]; otherwise, false .
|
Methods
Declaration
void BackupDatabases(string destinationFolder)
Parameters
Type |
Name |
Description |
System.String |
destinationFolder |
|
Declaration
string ExpandVirtualPath(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
Declaration
string GetLocalApiUrl(IPAddress address)
Parameters
Type |
Name |
Description |
System.Net.IPAddress |
address |
|
Returns
Type |
Description |
System.String |
|
Declaration
string GetLocalApiUrl(string host)
Parameters
Type |
Name |
Description |
System.String |
host |
The host.
|
Returns
Type |
Description |
System.String |
System.String.
|
Declaration
Task<string> GetLocalApiUrl(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
The local API URL.
|
Declaration
Task<List<IPAddress>> GetLocalIpAddresses(AddressFamily family, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Net.Sockets.AddressFamily |
family |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<System.Net.IPAddress>> |
|
Gets the local ip address.
Declaration
Task<List<IPAddress>> GetLocalIpAddresses(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<System.Net.IPAddress>> |
The local ip address.
|
Declaration
Task<IPAddress> GetLocalIpAddressForRemoteAddress(IPAddress address, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Net.IPAddress |
address |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Net.IPAddress> |
|
Declaration
Task<PublicSystemInfo> GetPublicSystemInfo(IPAddress remoteAddress, AuthorizationInfo authorizationInfo, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Net.IPAddress |
remoteAddress |
|
AuthorizationInfo |
authorizationInfo |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
Task<PublicSystemInfo> GetPublicSystemInfo(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
Task<PackageVersionInfo> GetReleaseNotes(string version, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
version |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
Task<PackageVersionInfo[]> GetReleaseNotesVersions(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
Task<SystemInfo> GetSystemInfo(IPAddress remoteAddress, AuthorizationInfo authorizationInfo, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Net.IPAddress |
remoteAddress |
|
AuthorizationInfo |
authorizationInfo |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<SystemInfo> |
|
Declaration
Task<SystemInfo> GetSystemInfo(IPAddress remoteAddress, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Net.IPAddress |
remoteAddress |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<SystemInfo> |
SystemInfo.
|
Declaration
WakeOnLanInfo[] GetWakeOnLanInfo()
Returns
Declaration
void LaunchUrl(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
Declaration
string ReverseVirtualPath(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
Events
Declaration
event EventHandler Disposed
Event Type
Type |
Description |
System.EventHandler |
|
Declaration
event EventHandler HasUpdateAvailableChanged
Event Type
Type |
Description |
System.EventHandler |
|
Extension Methods