|
|
|
@ -4,11 +4,11 @@ using System.IO;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Security.Cryptography;
|
|
|
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using DryIoc;
|
|
|
|
|
using DryIoc.Microsoft.DependencyInjection;
|
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
|
using Microsoft.Extensions.Hosting.WindowsServices;
|
|
|
|
|
using NLog;
|
|
|
|
@ -46,6 +46,7 @@ namespace NzbDrone.Host
|
|
|
|
|
var startupContext = new StartupContext(args);
|
|
|
|
|
|
|
|
|
|
LongPathSupport.Enable();
|
|
|
|
|
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
|
|
|
|
|
|
|
|
|
var appMode = GetApplicationMode(startupContext);
|
|
|
|
|
|
|
|
|
|