mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-01 00:12:30 +01:00
36 lines
841 B
C#
36 lines
841 B
C#
using System.Linq;
|
|
using System;
|
|
using Ninject;
|
|
using NLog;
|
|
using NzbDrone.Core.Model.Notification;
|
|
using NzbDrone.Core.Providers;
|
|
using NzbDrone.Core.Providers.Converting;
|
|
|
|
namespace NzbDrone.Core.Jobs
|
|
{
|
|
public class EmptyRecycleBinJob : IJob
|
|
{
|
|
private readonly RecycleBinProvider _recycleBinProvider;
|
|
|
|
[Inject]
|
|
public EmptyRecycleBinJob(RecycleBinProvider recycleBinProvider)
|
|
{
|
|
_recycleBinProvider = recycleBinProvider;
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get { return "Empty Recycle Bin"; }
|
|
}
|
|
|
|
public TimeSpan DefaultInterval
|
|
{
|
|
get { return TimeSpan.FromTicks(0); }
|
|
}
|
|
|
|
public void Start(ProgressNotification notification, dynamic options)
|
|
{
|
|
_recycleBinProvider.Empty();
|
|
}
|
|
}
|
|
} |