|
|
@ -3,6 +3,7 @@ using System.Reflection;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading;
|
|
|
|
using NLog;
|
|
|
|
using NLog;
|
|
|
|
using NzbDrone.Common.Composition;
|
|
|
|
using NzbDrone.Common.Composition;
|
|
|
|
|
|
|
|
using NzbDrone.Common.Disk;
|
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
using NzbDrone.Common.Exceptions;
|
|
|
|
using NzbDrone.Common.Exceptions;
|
|
|
|
using NzbDrone.Common.Instrumentation;
|
|
|
|
using NzbDrone.Common.Instrumentation;
|
|
|
@ -28,6 +29,8 @@ namespace NzbDrone.Host
|
|
|
|
throw new TerminateApplicationException("Missing system requirements");
|
|
|
|
throw new TerminateApplicationException("Missing system requirements");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LongPathSupport.Enable();
|
|
|
|
|
|
|
|
|
|
|
|
_container = MainAppContainerBuilder.BuildContainer(startupContext);
|
|
|
|
_container = MainAppContainerBuilder.BuildContainer(startupContext);
|
|
|
|
_container.Resolve<IAppFolderFactory>().Register();
|
|
|
|
_container.Resolve<IAppFolderFactory>().Register();
|
|
|
|
_container.Resolve<IProvidePidFile>().Write();
|
|
|
|
_container.Resolve<IProvidePidFile>().Write();
|
|
|
|