/// <inheritdoc /> public IHealthBuilder Using(IReportHealthStatus reporter) { if (reporter == null) { throw new ArgumentNullException(nameof(reporter)); } EnsureRequiredProperties(reporter); _reporters(reporter); return(Builder); }
private static void EnsureRequiredProperties(IReportHealthStatus reporter) { reporter.ReportInterval = reporter.ReportInterval <= TimeSpan.Zero ? HealthConstants.Reporting.DefaultReportInterval : reporter.ReportInterval; }