mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 23:42:33 +01:00
31 lines
717 B
C#
31 lines
717 B
C#
using System;
|
|
using NzbDrone.Core.Jobs;
|
|
using NzbDrone.Core.Model.Notification;
|
|
|
|
namespace NzbDrone.Core.Update
|
|
{
|
|
public class AppUpdateJob : IJob
|
|
{
|
|
private readonly IUpdateService _updateService;
|
|
|
|
public AppUpdateJob(IUpdateService updateService)
|
|
{
|
|
_updateService = updateService;
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get { return "Update Application Job"; }
|
|
}
|
|
|
|
public TimeSpan DefaultInterval
|
|
{
|
|
get { return TimeSpan.FromDays(2); }
|
|
}
|
|
|
|
public virtual void Start(ProgressNotification notification, dynamic options)
|
|
{
|
|
_updateService.InstallAvailableUpdate();
|
|
}
|
|
}
|
|
} |