diff ServerMonitor/Objects/Checks/Check.cs @ 8:052aa62cb42a

Single instance. Add autorun option. Add icons. General enhancements.
author Brad Greco <brad@bgreco.net>
date Sat, 09 Mar 2019 20:14:03 -0500
parents 3142e52cbe69
children 7626b099aefd
line wrap: on
line diff
--- a/ServerMonitor/Objects/Checks/Check.cs	Fri Mar 01 21:39:22 2019 -0500
+++ b/ServerMonitor/Objects/Checks/Check.cs	Sat Mar 09 20:14:03 2019 -0500
@@ -63,6 +63,11 @@
 
         public CheckStatus FailStatus { get; set; }
 
+        public int MaxConsecutiveFailures { get; set; }
+
+        [XmlIgnore]
+        public int ConsecutiveFailures { get; set; }
+
         [XmlIgnore]
         public Server Server { get; set; }
 
@@ -84,12 +89,6 @@
             return message;
         }
 
-        //public virtual CheckStatus Execute()
-        //{
-        //    //TODO
-        //    throw new NotImplementedException();
-        //}
-
         public async Task<CheckResult> ExecuteAsync(CancellationToken token = default(CancellationToken), bool update = true)
         {
             if (token.IsCancellationRequested)