|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using DryIoc;
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
|
using Microsoft.AspNetCore.DataProtection;
|
|
|
|
@ -26,6 +27,7 @@ using NzbDrone.SignalR;
|
|
|
|
|
using Sonarr.Api.V3.System;
|
|
|
|
|
using Sonarr.Http;
|
|
|
|
|
using Sonarr.Http.Authentication;
|
|
|
|
|
using Sonarr.Http.ClientSchema;
|
|
|
|
|
using Sonarr.Http.ErrorManagement;
|
|
|
|
|
using Sonarr.Http.Frontend;
|
|
|
|
|
using Sonarr.Http.Middleware;
|
|
|
|
@ -193,6 +195,7 @@ namespace NzbDrone.Host
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Configure(IApplicationBuilder app,
|
|
|
|
|
IContainer container,
|
|
|
|
|
IStartupContext startupContext,
|
|
|
|
|
Lazy<IMainDatabase> mainDatabaseFactory,
|
|
|
|
|
Lazy<ILogDatabase> logDatabaseFactory,
|
|
|
|
@ -227,6 +230,8 @@ namespace NzbDrone.Host
|
|
|
|
|
dbTarget.Register();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SchemaBuilder.Initialize(container);
|
|
|
|
|
|
|
|
|
|
if (OsInfo.IsNotWindows)
|
|
|
|
|
{
|
|
|
|
|
Console.CancelKeyPress += (sender, eventArgs) => NLog.LogManager.Configuration = null;
|
|
|
|
|