mirror of
https://github.com/Radarr/Radarr
synced 2025-12-28 03:07:57 +01:00
(cherry picked from commit e3545801721e00d4e5cac3fa534e66dcbe9d2d05) (cherry picked from commit cb27b05a6c046ca0a6e4998f7e7ecd6b45add1a2)
22 lines
830 B
C#
22 lines
830 B
C#
using System;
|
|
using NLog;
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
using NzbDrone.Core.Messaging.Events;
|
|
using NzbDrone.Core.ThingiProvider.Status;
|
|
|
|
namespace NzbDrone.Core.Notifications
|
|
{
|
|
public interface INotificationStatusService : IProviderStatusServiceBase<NotificationStatus>
|
|
{
|
|
}
|
|
|
|
public class NotificationStatusService : ProviderStatusServiceBase<INotification, NotificationStatus>, INotificationStatusService
|
|
{
|
|
public NotificationStatusService(INotificationStatusRepository providerStatusRepository, IEventAggregator eventAggregator, IRuntimeInfo runtimeInfo, Logger logger)
|
|
: base(providerStatusRepository, eventAggregator, runtimeInfo, logger)
|
|
{
|
|
MinimumTimeSinceInitialFailure = TimeSpan.FromMinutes(5);
|
|
MaximumEscalationLevel = 5;
|
|
}
|
|
}
|
|
}
|