/// <summary>
 /// Remove health checks from the monitor
 /// </summary>
 /// <param name="settingNames">The names of the health checks to remove</param>
 public void Remove(IEnumerable <string> settingNames)
 {
     foreach (var settingName in settingNames)
     {
         HealthChecks.TryRemove(settingName, out var _);
         MonitorResults.TryRemove(settingName, out var _);
     }
 }
        /// <summary>
        /// Add new health checks to the monitor
        /// </summary>
        /// <param name="settings">The settings for the healthchecks to add</param>
        public void AddUpdate(IEnumerable <HealthCheckSetting> settings)
        {
            foreach (var setting in settings)
            {
                HealthChecks.AddOrUpdate(setting.Name, setting, (k, v) => setting);
                MonitorResults.AddOrUpdate(setting.Name, new HealthMonitorResult {
                    Name = setting.Name
                }, (k, v) =>
                {
                    if (!setting.Monitor)
                    {
                        v.Status = HealthMonitorStatus.NotChecked;
                    }

                    return(v);
                });
            }
        }
 public MonitorResult(MonitorResults result, string message)
 {
     m_Result  = result;
     m_Message = message;
 }