You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/NzbDrone/NzbDroneBootstrapper.cs

29 lines
702 B

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);
}
}
}