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
|
@ -7,7 +7,6 @@ using System.Diagnostics;
|
|||
using System.Linq;
|
||||
using System.Threading;
|
||||
using NLog;
|
||||
using Ninject;
|
||||
using NzbDrone.Core.Model;
|
||||
using NzbDrone.Core.Model.Notification;
|
||||
using NzbDrone.Core.Providers;
|
||||
|
@ -25,7 +24,7 @@ namespace NzbDrone.Core.Jobs
|
|||
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
||||
private readonly IDatabase _database;
|
||||
private readonly NotificationProvider _notificationProvider;
|
||||
private readonly IList<IJob> _jobs;
|
||||
private readonly IEnumerable<IJob> _jobs;
|
||||
|
||||
private Thread _jobThread;
|
||||
public Stopwatch StopWatch { get; private set; }
|
||||
|
@ -36,8 +35,7 @@ namespace NzbDrone.Core.Jobs
|
|||
private ProgressNotification _notification;
|
||||
|
||||
|
||||
[Inject]
|
||||
public JobProvider(IDatabase database, NotificationProvider notificationProvider, IList<IJob> jobs)
|
||||
public JobProvider(IDatabase database, NotificationProvider notificationProvider, IEnumerable<IJob> jobs)
|
||||
{
|
||||
StopWatch = new Stopwatch();
|
||||
_database = database;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue