Exemplo n.º 1
0
        /// <inheritdoc />
        public IHealthBuilder Using(IReportHealthStatus reporter)
        {
            if (reporter == null)
            {
                throw new ArgumentNullException(nameof(reporter));
            }

            EnsureRequiredProperties(reporter);

            _reporters(reporter);

            return(Builder);
        }
Exemplo n.º 2
0
 private static void EnsureRequiredProperties(IReportHealthStatus reporter)
 {
     reporter.ReportInterval = reporter.ReportInterval <= TimeSpan.Zero
         ? HealthConstants.Reporting.DefaultReportInterval
         : reporter.ReportInterval;
 }