Added validation to the Email settings, also increased the availability checker from 2 minutes to 5

This commit is contained in:
tidusjar 2016-03-17 08:54:40 +00:00
commit aa5304b8dd
8 changed files with 90 additions and 25 deletions

View file

@ -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);
}
}

View file

@ -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
}
}

View file

@ -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);
}
}