mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 18:42:42 +01:00
29 lines
702 B
C#
29 lines
702 B
C#
using NLog;
|
|
using NzbDrone.Common;
|
|
using TinyIoC;
|
|
using NzbDrone.Core;
|
|
using NzbDrone.Api;
|
|
|
|
namespace NzbDrone
|
|
{
|
|
public static class NzbDroneBootstrapper
|
|
{
|
|
private static readonly Logger logger = LogManager.GetLogger("NzbDroneBootstrapper");
|
|
|
|
static NzbDroneBootstrapper()
|
|
{
|
|
InitializeApp();
|
|
}
|
|
|
|
|
|
private static void InitializeApp()
|
|
{
|
|
var environmentProvider = ContainerBuilder.Instance.Resolve<EnvironmentProvider>();
|
|
|
|
ReportingService.RestProvider = ContainerBuilder.Instance.Resolve<RestProvider>();
|
|
|
|
logger.Info("Start-up Path:'{0}'", environmentProvider.WorkingDirectory);
|
|
}
|
|
}
|
|
}
|