Facebook
Twitter
Pinterest
Tumblr
GitHub
RSS
  • DEV Home
  • Documentation
  • Reference
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface IApplicationHost

    An interface to be implemented by the applications hosting a kernel

    Namespace: MediaBrowser.Common
    Assembly: MediaBrowser.Common.dll
    Syntax
    public interface IApplicationHost

    Properties

    ApplicationVersion

    Gets the application version.

    Declaration
    Version ApplicationVersion { get; }
    Property Value
    Type Description
    System.Version

    The application version.

    CanSelfRestart

    Gets a value indicating whether this instance can self restart.

    Declaration
    bool CanSelfRestart { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance can self restart; otherwise, false.

    CanSelfUpdate

    Gets or sets a value indicating whether this instance can self update.

    Declaration
    bool CanSelfUpdate { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance can self update; otherwise, false.

    HasPendingRestart

    Gets or sets a value indicating whether this instance has pending kernel reload.

    Declaration
    bool HasPendingRestart { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance has pending kernel reload; otherwise, false.

    IsShuttingDown

    Declaration
    bool IsShuttingDown { get; }
    Property Value
    Type Description
    System.Boolean

    IsStartupComplete

    Declaration
    bool IsStartupComplete { get; }
    Property Value
    Type Description
    System.Boolean

    Name

    Gets the name.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    System.String

    The name.

    OperatingSystemDisplayName

    Gets the display name of the operating system.

    Declaration
    string OperatingSystemDisplayName { get; }
    Property Value
    Type Description
    System.String

    The display name of the operating system.

    Plugins

    Gets the plugins.

    Declaration
    IPlugin[] Plugins { get; }
    Property Value
    Type Description
    IPlugin[]

    The plugins.

    SystemId

    Gets the device identifier.

    Declaration
    string SystemId { get; }
    Property Value
    Type Description
    System.String

    The device identifier.

    SystemUpdateLevel

    Declaration
    PackageVersionClass SystemUpdateLevel { get; }
    Property Value
    Type Description
    PackageVersionClass

    Methods

    CheckForApplicationUpdate(CancellationToken, Boolean, IProgress<Double>)

    Checks for update.

    Declaration
    Task<CheckForUpdateResult> CheckForApplicationUpdate(CancellationToken cancellationToken, bool isInBackground, IProgress<double> progress)
    Parameters
    Type Name Description
    System.Threading.CancellationToken cancellationToken
    System.Boolean isInBackground
    System.IProgress<System.Double> progress
    Returns
    Type Description
    System.Threading.Tasks.Task<CheckForUpdateResult>

    Task{CheckForUpdateResult}.

    ContainsStartupOption(String)

    Declaration
    bool ContainsStartupOption(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Boolean

    CreateInstance(Type)

    Creates the instance.

    Declaration
    object CreateInstance(Type type)
    Parameters
    Type Name Description
    System.Type type

    The type.

    Returns
    Type Description
    System.Object

    System.Object.

    GetExports<T>(Boolean)

    Gets the exports.

    Declaration
    IEnumerable<T> GetExports<T>(bool manageLiftime = true)
    Parameters
    Type Name Description
    System.Boolean manageLiftime

    if set to true [manage liftime].

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<T>

    IEnumerable{``0}.

    Type Parameters
    Name Description
    T

    Init()

    Inits this instance.

    Declaration
    void Init()

    NotifyPendingRestart()

    Notifies the pending restart.

    Declaration
    void NotifyPendingRestart()

    RemovePlugin(IPlugin)

    Removes the plugin.

    Declaration
    void RemovePlugin(IPlugin plugin)
    Parameters
    Type Name Description
    IPlugin plugin

    The plugin.

    Resolve<T>()

    Resolves this instance.

    Declaration
    T Resolve<T>()
    Returns
    Type Description
    T

    ``0.

    Type Parameters
    Name Description
    T

    Restart()

    Restarts this instance.

    Declaration
    void Restart()

    Shutdown()

    Shuts down.

    Declaration
    Task Shutdown()
    Returns
    Type Description
    System.Threading.Tasks.Task

    TryResolve<T>()

    Resolves this instance.

    Declaration
    T TryResolve<T>()
    Returns
    Type Description
    T

    ``0.

    Type Parameters
    Name Description
    T

    UpdateApplication(PackageVersionInfo, CancellationToken, IProgress<Double>)

    Updates the application.

    Declaration
    Task UpdateApplication(PackageVersionInfo package, CancellationToken cancellationToken, IProgress<double> progress)
    Parameters
    Type Name Description
    PackageVersionInfo package
    System.Threading.CancellationToken cancellationToken
    System.IProgress<System.Double> progress
    Returns
    Type Description
    System.Threading.Tasks.Task

    Task.

    Events

    ApplicationUpdated

    Occurs when [application updated].

    Declaration
    event EventHandler<GenericEventArgs<PackageVersionInfo>> ApplicationUpdated
    Event Type
    Type Description
    System.EventHandler<GenericEventArgs<PackageVersionInfo>>

    HasPendingRestartChanged

    Occurs when [has pending restart changed].

    Declaration
    event EventHandler HasPendingRestartChanged
    Event Type
    Type Description
    System.EventHandler

    Extension Methods

    Extensions.JsonClone<T>(T, IJsonSerializer)
    SDK
    On this Page
    Back to Top Copyright 2022 © EMBY LLC. Please see our terms of use and privacy policy.