mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
Hello Autofac, Goodbye Ninject
This commit is contained in:
parent
17d9d0cc4f
commit
924d3d0c8e
139 changed files with 473 additions and 572 deletions
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using NLog.Config;
|
||||
using Ninject;
|
||||
using NLog;
|
||||
using NLog.Targets;
|
||||
using NLog.Targets.Wrappers;
|
||||
|
@ -14,7 +13,6 @@ namespace NzbDrone.Core.Instrumentation
|
|||
{
|
||||
private readonly IDatabase _database;
|
||||
|
||||
[Inject]
|
||||
public DatabaseTarget(IDatabase database)
|
||||
{
|
||||
_database = database;
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
using System.Data.Common;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using Ninject;
|
||||
|
||||
namespace NzbDrone.Core.Instrumentation
|
||||
{
|
||||
public class LogDbContext : DbContext
|
||||
{
|
||||
[Inject]
|
||||
public LogDbContext(DbConnection connection)
|
||||
: base(connection, false)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue