1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- using MediaBrowser.Common.Net;
- using MediaBrowser.Controller.Diagnostics;
- using MediaBrowser.Model.Logging;
- using System.Collections.Generic;
- using System.Reflection;
- namespace MediaBrowser.Server.Startup.Common
- {
- public interface INativeApp
- {
- /// <summary>
- /// Gets the assemblies with parts.
- /// </summary>
- /// <returns>List<Assembly>.</returns>
- List<Assembly> GetAssembliesWithParts();
- /// <summary>
- /// Authorizes the server.
- /// </summary>
- /// <param name="udpPort">The UDP port.</param>
- /// <param name="httpServerPort">The HTTP server port.</param>
- /// <param name="httpsServerPort">The HTTPS server port.</param>
- /// <param name="tempDirectory">The temporary directory.</param>
- void AuthorizeServer(int udpPort, int httpServerPort, int httpsServerPort, string tempDirectory);
- /// <summary>
- /// Gets the environment.
- /// </summary>
- /// <value>The environment.</value>
- NativeEnvironment Environment { get; }
- /// <summary>
- /// Gets a value indicating whether [supports running as service].
- /// </summary>
- /// <value><c>true</c> if [supports running as service]; otherwise, <c>false</c>.</value>
- bool SupportsRunningAsService { get; }
- /// <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; }
- /// <summary>
- /// Gets a value indicating whether this instance can self restart.
- /// </summary>
- /// <value><c>true</c> if this instance can self restart; otherwise, <c>false</c>.</value>
- bool CanSelfRestart { get; }
- /// <summary>
- /// Gets a value indicating whether [supports autorun at startup].
- /// </summary>
- /// <value><c>true</c> if [supports autorun at startup]; otherwise, <c>false</c>.</value>
- bool SupportsAutoRunAtStartup { get; }
- /// <summary>
- /// Gets a value indicating whether this instance can self update.
- /// </summary>
- /// <value><c>true</c> if this instance can self update; otherwise, <c>false</c>.</value>
- bool CanSelfUpdate { get; }
- /// <summary>
- /// Shutdowns this instance.
- /// </summary>
- void Shutdown();
- /// <summary>
- /// Restarts this instance.
- /// </summary>
- void Restart();
- /// <summary>
- /// Configures the automatic run.
- /// </summary>
- /// <param name="autorun">if set to <c>true</c> [autorun].</param>
- void ConfigureAutoRun(bool autorun);
- /// <summary>
- /// Gets the network manager.
- /// </summary>
- /// <returns>INetworkManager.</returns>
- INetworkManager CreateNetworkManager(ILogger logger);
- /// <summary>
- /// Prevents the system stand by.
- /// </summary>
- void PreventSystemStandby();
- /// <summary>
- /// Gets the process manager.
- /// </summary>
- /// <returns>IProcessManager.</returns>
- IProcessManager GetProcessManager();
- }
- }
|