mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-01 07:55:22 +02:00
added Logger injection module for Autofac, API boots up.
This commit is contained in:
@@ -20,15 +20,17 @@ namespace NzbDrone.Core
|
||||
|
||||
private static readonly Logger logger = LogManager.GetLogger("ServiceRegistration");
|
||||
|
||||
public static void RegisterCoreServices(this ContainerBuilder container)
|
||||
public static void RegisterCoreServices(this ContainerBuilder containerBuilder)
|
||||
{
|
||||
var core = Assembly.Load("NzbDrone.Core");
|
||||
var common = Assembly.Load("NzbDrone.Common");
|
||||
|
||||
container.RegisterAssembly(core);
|
||||
container.RegisterAssembly(common);
|
||||
containerBuilder.RegisterAssembly(core);
|
||||
containerBuilder.RegisterAssembly(common);
|
||||
|
||||
container.InitDatabase();
|
||||
containerBuilder.InitDatabase();
|
||||
|
||||
containerBuilder.RegisterModule<LogInjectionModule>();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user