1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-13 22:43:35 +01:00
Radarr/NzbDrone.Core/Jobs/Implementations/CleanupRecycleBinJob.cs

32 lines
776 B
C#
Raw Normal View History

using System;
2013-03-05 06:37:33 +01:00
using System.Linq;
using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers;
2013-03-05 06:37:33 +01:00
namespace NzbDrone.Core.Jobs.Implementations
{
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 21:04:17 +02:00
public void Start(ProgressNotification notification, dynamic options)
{
_recycleBinProvider.Cleanup();
}
}
}