@ -1,4 +1,5 @@
using MediaBrowser.Common.Implementations.Udp ;
using System.Threading.Tasks ;
using MediaBrowser.Common.Implementations.Udp ;
using MediaBrowser.Common.Implementations.Updates ;
using MediaBrowser.Common.Implementations.WebSocket ;
using MediaBrowser.Common.Kernel ;
@ -114,16 +115,26 @@ namespace MediaBrowser.Common.Implementations
protected BaseApplicationHost ( )
{
FailedAssemblies = new List < string > ( ) ;
}
ApplicationPaths = GetApplicationPaths ( ) ;
/// <summary>
/// Inits this instance.
/// </summary>
/// <returns>Task.</returns>
public virtual Task Init ( )
{
return Task . Run ( ( ) = >
{
ApplicationPaths = GetApplicationPaths ( ) ;
LogManager = GetLogManager ( ) ;
LogManager = GetLogManager ( ) ;
Logger = LogManager . GetLogger ( "App" ) ;
Logger = LogManager . GetLogger ( "App" ) ;
IsFirstRun = ! File . Exists ( ApplicationPaths . SystemConfigurationFilePath ) ;
IsFirstRun = ! File . Exists ( ApplicationPaths . SystemConfigurationFilePath ) ;
DiscoverTypes ( ) ;
DiscoverTypes ( ) ;
} ) ;
}
/// <summary>