1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-25 01:06:30 +00:00
Sonarr/NzbDrone/NzbDroneBootstrapper.cs
2013-04-02 19:20:05 -07:00

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