/// <summary>
 ///  Adds a named check function with a single result
 /// </summary>
 /// <param name="checkProvider"></param>
 /// <param name="name">Exposed name of the function</param>
 /// <param name="func">Method that matches delegate SingleResultCheckFunction</param>
 public static void AddSingleResultCheckFunction(this ICheckProvider checkProvider, string name, SingleResultCheckFunction func)
 {
     checkProvider.Functions.Add("check_" + name, (settings) =>
     {
         var cr = func(settings as CheckSettings);
         var cfr = new CheckFunctionResult();
         cfr.CheckResults.Add("default", cr);
         cfr.RanSuccessfully = cr.RanSuccessfully;
         cfr.FunctionException = cr.ExecutionException;
         cfr.Message = cr.Message;
         return cfr;
     });
 }
 /// <summary>
 /// Adds check function as default function with single result
 /// </summary>
 /// <param name="checkProvider"></param>
 /// <param name="func">Method that matches delegate SingleResultCheckFunction</param>
 public static void AddSingleResultCheckFunction(this ICheckProvider checkProvider, SingleResultCheckFunction func)
 {
     checkProvider.AddSingleResultCheckFunction("default", func);
 }