1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/NzbDrone.Core/Jobs/Implementations/CleanupRecycleBinJob.cs

32 lines
776 B
C#
Raw Normal View History

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