sonarr-repo-only/NzbDrone.Core/Jobs/CleanupRecycleBinJob.cs

35 lines
853 B
C#
Raw Normal View History

using System.Linq;
using System;
using NLog;
2013-03-05 05:20:47 +00:00
using NzbDrone.Core.Jobs.Framework;
using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers;
using NzbDrone.Core.Providers.Converting;
namespace NzbDrone.Core.Jobs
{
public class CleanupRecycleBinJob : IJob
{
private readonly RecycleBinProvider _recycleBinProvider;
public CleanupRecycleBinJob(RecycleBinProvider recycleBinProvider)
{
_recycleBinProvider = recycleBinProvider;
}
public string Name
{
get { return "Cleanup Recycle Bin"; }
}
public TimeSpan DefaultInterval
{
get { return TimeSpan.FromDays(24); }
}
2012-09-10 19:04:17 +00:00
public void Start(ProgressNotification notification, dynamic options)
{
_recycleBinProvider.Cleanup();
}
}
}