From db3731f99e8ec09e570302b718a7ba2c3213eb84 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 18 Dec 2012 11:40:50 -0800 Subject: [PATCH] Inject constructors --- NzbDrone.Core/Jobs/PastWeekBacklogSearchJob.cs | 2 ++ NzbDrone.Core/Jobs/RecentBacklogSearchJob.cs | 2 ++ NzbDrone.Core/Jobs/SeasonSearchJob.cs | 2 ++ NzbDrone.Core/Jobs/SeriesSearchJob.cs | 2 ++ NzbDrone.Core/Jobs/TrimLogsJob.cs | 2 ++ NzbDrone.Core/Jobs/UpdateSceneMappingsJob.cs | 2 ++ 6 files changed, 12 insertions(+) diff --git a/NzbDrone.Core/Jobs/PastWeekBacklogSearchJob.cs b/NzbDrone.Core/Jobs/PastWeekBacklogSearchJob.cs index 87d6b92e5..668b02f78 100644 --- a/NzbDrone.Core/Jobs/PastWeekBacklogSearchJob.cs +++ b/NzbDrone.Core/Jobs/PastWeekBacklogSearchJob.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using NLog; +using Ninject; using NzbDrone.Core.Model; using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Providers; @@ -18,6 +19,7 @@ public class PastWeekBacklogSearchJob : IJob private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); + [Inject] public PastWeekBacklogSearchJob(EpisodeProvider episodeProvider, EpisodeSearchJob episodeSearchJob, ConfigProvider configProvider) { diff --git a/NzbDrone.Core/Jobs/RecentBacklogSearchJob.cs b/NzbDrone.Core/Jobs/RecentBacklogSearchJob.cs index 4e0333531..153f5c364 100644 --- a/NzbDrone.Core/Jobs/RecentBacklogSearchJob.cs +++ b/NzbDrone.Core/Jobs/RecentBacklogSearchJob.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using NLog; +using Ninject; using NzbDrone.Core.Model; using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Providers; @@ -18,6 +19,7 @@ public class RecentBacklogSearchJob : IJob private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); + [Inject] public RecentBacklogSearchJob(EpisodeProvider episodeProvider, EpisodeSearchJob episodeSearchJob, ConfigProvider configProvider) { diff --git a/NzbDrone.Core/Jobs/SeasonSearchJob.cs b/NzbDrone.Core/Jobs/SeasonSearchJob.cs index 9354a08ed..dc04e4ca2 100644 --- a/NzbDrone.Core/Jobs/SeasonSearchJob.cs +++ b/NzbDrone.Core/Jobs/SeasonSearchJob.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using NLog; +using Ninject; using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Providers; using NzbDrone.Core.Repository; @@ -16,6 +17,7 @@ public class SeasonSearchJob : IJob private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); + [Inject] public SeasonSearchJob(SearchProvider searchProvider, EpisodeSearchJob episodeSearchJob, EpisodeProvider episodeProvider) { diff --git a/NzbDrone.Core/Jobs/SeriesSearchJob.cs b/NzbDrone.Core/Jobs/SeriesSearchJob.cs index 53bd5b52e..aa6f648ae 100644 --- a/NzbDrone.Core/Jobs/SeriesSearchJob.cs +++ b/NzbDrone.Core/Jobs/SeriesSearchJob.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using NLog; +using Ninject; using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Providers; using NzbDrone.Core.Repository; @@ -15,6 +16,7 @@ public class SeriesSearchJob : IJob private static readonly Logger logger = LogManager.GetCurrentClassLogger(); + [Inject] public SeriesSearchJob(SeasonSearchJob seasonSearchJob, SeasonProvider seasonProvider) { diff --git a/NzbDrone.Core/Jobs/TrimLogsJob.cs b/NzbDrone.Core/Jobs/TrimLogsJob.cs index 146e243dc..4d9395572 100644 --- a/NzbDrone.Core/Jobs/TrimLogsJob.cs +++ b/NzbDrone.Core/Jobs/TrimLogsJob.cs @@ -1,5 +1,6 @@ using System; using System.Linq; +using Ninject; using NzbDrone.Core.Instrumentation; using NzbDrone.Core.Model.Notification; @@ -9,6 +10,7 @@ public class TrimLogsJob : IJob { private readonly LogProvider _logProvider; + [Inject] public TrimLogsJob(LogProvider logProvider) { _logProvider = logProvider; diff --git a/NzbDrone.Core/Jobs/UpdateSceneMappingsJob.cs b/NzbDrone.Core/Jobs/UpdateSceneMappingsJob.cs index 85acc6329..f4db29e71 100644 --- a/NzbDrone.Core/Jobs/UpdateSceneMappingsJob.cs +++ b/NzbDrone.Core/Jobs/UpdateSceneMappingsJob.cs @@ -1,5 +1,6 @@ using System; using System.Linq; +using Ninject; using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Providers; @@ -9,6 +10,7 @@ public class UpdateSceneMappingsJob : IJob { private readonly SceneMappingProvider _sceneNameMappingProvider; + [Inject] public UpdateSceneMappingsJob(SceneMappingProvider sceneNameMappingProvider) { _sceneNameMappingProvider = sceneNameMappingProvider;