mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
added Logger injection module for Autofac, API boots up.
This commit is contained in:
parent
64a3e1caf0
commit
87f3c6a6c9
10 changed files with 78 additions and 23 deletions
|
@ -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>();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue