1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-30 23:42:33 +01:00

moved jobs around again ;)

This commit is contained in:
kay.one 2013-03-04 21:37:33 -08:00
parent 50674d388c
commit 568d4b8eeb
29 changed files with 70 additions and 121 deletions

View File

@ -6,6 +6,7 @@ using System.Collections.Generic;
using FizzWare.NBuilder; using FizzWare.NBuilder;
using Moq; using Moq;
using NUnit.Framework; using NUnit.Framework;
using NzbDrone.Core.Jobs.Implementations;
using NzbDrone.Core.MediaFiles; using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.Tv; using NzbDrone.Core.Tv;
using NzbDrone.Core.Jobs; using NzbDrone.Core.Jobs;

View File

@ -5,6 +5,7 @@ using System.Text;
using FizzWare.NBuilder; using FizzWare.NBuilder;
using Moq; using Moq;
using NUnit.Framework; using NUnit.Framework;
using NzbDrone.Core.Jobs.Implementations;
using NzbDrone.Core.MediaFiles; using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.Tv; using NzbDrone.Core.Tv;
using NzbDrone.Core.Jobs; using NzbDrone.Core.Jobs;

View File

@ -2,6 +2,7 @@
using Moq; using Moq;
using NUnit.Framework; using NUnit.Framework;
using NzbDrone.Core.Jobs.Implementations;
using NzbDrone.Core.Tv; using NzbDrone.Core.Tv;
using NzbDrone.Core.Jobs; using NzbDrone.Core.Jobs;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;

View File

@ -1,8 +1,8 @@
using System; using System;
using System.Linq; using System.Linq;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
namespace NzbDrone.Core.Jobs.Framework namespace NzbDrone.Core.Jobs
{ {
public interface IJob public interface IJob
{ {

View File

@ -1,14 +1,13 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using NLog; using NLog;
using NzbDrone.Core.Configuration; using NzbDrone.Core.Configuration;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model; using NzbDrone.Core.Model;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class BacklogSearchJob : IJob public class BacklogSearchJob : IJob
{ {

View File

@ -1,12 +1,9 @@
using System.Linq;
using System; using System;
using NLog; using System.Linq;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Providers;
using NzbDrone.Core.Providers.Converting;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class CleanupRecycleBinJob : IJob public class CleanupRecycleBinJob : IJob
{ {

View File

@ -1,14 +1,11 @@
using System.Linq;
using System; using System;
using System.Linq;
using NLog; using NLog;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers;
using NzbDrone.Core.Providers.Converting; using NzbDrone.Core.Providers.Converting;
using NzbDrone.Core.Repository; using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class ConvertEpisodeJob : IJob public class ConvertEpisodeJob : IJob
{ {

View File

@ -1,13 +1,11 @@
using System.Linq;
using System; using System;
using System.Linq;
using NLog; using NLog;
using NzbDrone.Common;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Providers;
using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class DeleteSeriesJob : IJob public class DeleteSeriesJob : IJob
{ {

View File

@ -1,16 +1,14 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using NLog; using NLog;
using NzbDrone.Core.Configuration; using NzbDrone.Core.Configuration;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Helpers; using NzbDrone.Core.Helpers;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Providers;
using NzbDrone.Core.Repository; using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class DiskScanJob : IJob public class DiskScanJob : IJob
{ {

View File

@ -1,12 +1,9 @@
using System.Linq;
using System; using System;
using NLog; using System.Linq;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Providers;
using NzbDrone.Core.Providers.Converting;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class EmptyRecycleBinJob : IJob public class EmptyRecycleBinJob : IJob
{ {

View File

@ -1,15 +1,12 @@
using System.Linq;
using System; using System;
using System.Linq;
using NLog; using NLog;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers;
using NzbDrone.Core.DecisionEngine; using NzbDrone.Core.DecisionEngine;
using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers.Search; using NzbDrone.Core.Providers.Search;
using NzbDrone.Core.Repository; using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class EpisodeSearchJob : IJob public class EpisodeSearchJob : IJob
{ {

View File

@ -1,16 +1,14 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using NLog; using NLog;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.MediaFiles; using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
/// <summary> /// <summary>
/// This job processes newly added jobs by downloading their info /// This job processes newly added jobs by downloading their info

View File

@ -1,16 +1,12 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using NLog; using NLog;
using NzbDrone.Core.Configuration; using NzbDrone.Core.Configuration;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Tv;
using NzbDrone.Core.Repository;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class PastWeekBacklogSearchJob : IJob public class PastWeekBacklogSearchJob : IJob
{ {

View File

@ -1,13 +1,12 @@
using System.Linq;
using System; using System;
using System.Linq;
using NLog; using NLog;
using NzbDrone.Common; using NzbDrone.Common;
using NzbDrone.Core.Configuration; using NzbDrone.Core.Configuration;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Providers;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class PostDownloadScanJob : IJob public class PostDownloadScanJob : IJob
{ {

View File

@ -1,16 +1,13 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using NLog; using NLog;
using NzbDrone.Core.Configuration; using NzbDrone.Core.Configuration;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model; using NzbDrone.Core.Model;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Tv;
using NzbDrone.Core.Repository;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class RecentBacklogSearchJob : IJob public class RecentBacklogSearchJob : IJob
{ {

View File

@ -1,16 +1,12 @@
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System;
using NLog; using NLog;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.MediaFiles; using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Tv;
using NzbDrone.Core.Repository;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class RefreshEpisodeMetadata : IJob public class RefreshEpisodeMetadata : IJob
{ {

View File

@ -1,17 +1,15 @@
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System;
using NLog; using NLog;
using NzbDrone.Common.Eventing; using NzbDrone.Common.Eventing;
using NzbDrone.Core.Download; using NzbDrone.Core.Download;
using NzbDrone.Core.ExternalNotification;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.MediaFiles; using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Providers;
using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class RenameSeasonJob : IJob public class RenameSeasonJob : IJob
{ {

View File

@ -1,16 +1,15 @@
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System;
using NLog; using NLog;
using NzbDrone.Common.Eventing; using NzbDrone.Common.Eventing;
using NzbDrone.Core.Download; using NzbDrone.Core.Download;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.MediaFiles; using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Providers;
using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class RenameSeriesJob : IJob public class RenameSeriesJob : IJob
{ {

View File

@ -1,18 +1,16 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using NLog; using NLog;
using NzbDrone.Core.Configuration; using NzbDrone.Core.Configuration;
using NzbDrone.Core.DecisionEngine;
using NzbDrone.Core.Download; using NzbDrone.Core.Download;
using NzbDrone.Core.Indexers; using NzbDrone.Core.Indexers;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Model; using NzbDrone.Core.Model;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers;
using NzbDrone.Core.DecisionEngine;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class RssSyncJob : IJob public class RssSyncJob : IJob
{ {

View File

@ -1,14 +1,12 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using NLog; using NLog;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Providers;
using NzbDrone.Core.Repository; using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class SeasonSearchJob : IJob public class SeasonSearchJob : IJob
{ {

View File

@ -1,14 +1,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using NLog; using NLog;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Tv;
using NzbDrone.Core.Repository;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class SeriesSearchJob : IJob public class SeriesSearchJob : IJob
{ {

View File

@ -1,18 +1,14 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using NLog; using NLog;
using NzbDrone.Core.Configuration; using NzbDrone.Core.Configuration;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.ReferenceData;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Helpers; using NzbDrone.Core.Helpers;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.ReferenceData;
using NzbDrone.Core.Repository; using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class UpdateInfoJob : IJob public class UpdateInfoJob : IJob
{ {

View File

@ -1,11 +1,9 @@
using System; using System;
using System.Linq; using System.Linq;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers;
using NzbDrone.Core.ReferenceData; using NzbDrone.Core.ReferenceData;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class UpdateSceneMappingsJob : IJob public class UpdateSceneMappingsJob : IJob
{ {

View File

@ -1,14 +1,10 @@
using System; using System;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using NLog; using NLog;
using NzbDrone.Core.Helpers;
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Providers;
using NzbDrone.Core.Repository;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs.Implementations
{ {
public class XemUpdateJob : IJob public class XemUpdateJob : IJob
{ {

View File

@ -9,7 +9,7 @@ using NLog;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Providers;
namespace NzbDrone.Core.Jobs.Framework namespace NzbDrone.Core.Jobs
{ {
public interface IJobController public interface IJobController
{ {

View File

@ -1,8 +1,8 @@
using System.Linq;
using System; using System;
using System.Linq;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Jobs.Framework namespace NzbDrone.Core.Jobs
{ {
public class JobDefinition : ModelBase public class JobDefinition : ModelBase
{ {

View File

@ -1,7 +1,7 @@
using System.Linq;
using System; using System;
using System.Linq;
namespace NzbDrone.Core.Jobs.Framework namespace NzbDrone.Core.Jobs
{ {
public class JobQueueItem : IEquatable<JobQueueItem> public class JobQueueItem : IEquatable<JobQueueItem>
{ {

View File

@ -5,7 +5,7 @@ using NLog;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
using NzbDrone.Core.Lifecycle; using NzbDrone.Core.Lifecycle;
namespace NzbDrone.Core.Jobs.Framework namespace NzbDrone.Core.Jobs
{ {
public interface IJobRepository : IInitializable, IBasicRepository<JobDefinition> public interface IJobRepository : IInitializable, IBasicRepository<JobDefinition>
{ {

View File

@ -1,7 +1,4 @@
using System; using System.Linq;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Qualities namespace NzbDrone.Core.Qualities
@ -14,7 +11,7 @@ namespace NzbDrone.Core.Qualities
public class QualitySizeRepository : BasicRepository<QualitySize>, IQualitySizeRepository public class QualitySizeRepository : BasicRepository<QualitySize>, IQualitySizeRepository
{ {
public QualitySizeRepository(IObjectDatabase database) public QualitySizeRepository(IObjectDatabase database)
: base(database) : base(database)
{ {
} }