Exemple #1
0
        private static TooManyTemporaryFailuresHealthCheck <string> CreateHealthCheck(
            TooManyTemporaryFailuresStatistics <string> temporaryFailuresStatistics)
        {
            var options = new TooManyTemporaryFailuresOptions();

            return(new TooManyTemporaryFailuresHealthCheck <string>(
                       Options.Create(options), temporaryFailuresStatistics));
        }
 public TooManyTemporaryFailuresHealthCheck(IOptions <TooManyTemporaryFailuresOptions> options,
                                            TooManyTemporaryFailuresStatistics <TInput> statistics)
 {
     _statistics = statistics;
     _options    = options.Value;
 }