mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Added validation to the Email settings, also increased the availability checker from 2 minutes to 5
This commit is contained in:
parent
752d8bb66e
commit
aa5304b8dd
8 changed files with 90 additions and 25 deletions
|
@ -26,8 +26,6 @@
|
|||
#endregion
|
||||
using System;
|
||||
using System.Reactive.Linq;
|
||||
using System.Runtime.Remoting.Messaging;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.Hosting;
|
||||
|
||||
using FluentScheduler;
|
||||
|
@ -76,7 +74,7 @@ namespace PlexRequests.Services
|
|||
|
||||
public void Stop(bool immediate)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
HostingEnvironment.UnregisterObject(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@ namespace PlexRequests.Services.Interfaces
|
|||
{
|
||||
public interface IIntervals
|
||||
{
|
||||
TimeSpan CriticalNotification { get; } // notification interval for critical load
|
||||
TimeSpan Measurement { get; } // how often to measure
|
||||
TimeSpan Notification { get; } // notification interval for high load
|
||||
}
|
||||
}
|
|
@ -32,9 +32,7 @@ namespace PlexRequests.Services
|
|||
{
|
||||
public class UpdateInterval : IIntervals
|
||||
{
|
||||
public TimeSpan Measurement => TimeSpan.FromSeconds(1);
|
||||
public TimeSpan CriticalNotification { get; }
|
||||
public TimeSpan Notification => TimeSpan.FromMinutes(2);
|
||||
public TimeSpan Notification => TimeSpan.FromMinutes(5);
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue