/// <summary> /// Scans assembly contained by type T for timer triggers and adds them to a timer healthcheck /// Note that you must also accept a TimerHealthCheckHelper in your timer trigger via constructor injection and call TimerHealthCheckHelper.CheckpointMethod passing in the type of your timer so that it writes the checkpoint to blob storage" /// This constructor uses a default tolerance timespan of 5 minutes /// </summary> /// <typeparam name="T">Any type from the assembly you want to scan for timertriggers</typeparam> /// <param name="builder"></param> /// <returns></returns> public static IHealthChecksBuilder AddTimerTriggerHealthCheck <T>(this IHealthChecksBuilder builder) { return(builder.AddTimerTriggerHealthCheck <T>(new TimerTriggerHealthCheckOptions { ToleranceTimeSpan = TimeSpan.FromMinutes(5) })); }