public HealthCheckerBuilder WithHealthChecksFromAssemblies(params Assembly[] assemblies)
        {
            var allAssemblies = assemblies.Union(new[] {typeof (HealthCheckerBuilder).Assembly}).ToArray();
            _healthChecksFunc = new AssemblyScanningHealthCheckStrategy(allAssemblies).ScanForHealthChecks;

            return this;
        }
示例#2
0
        public HealthCheckerBuilder WithHealthChecksFromAssemblies(params Assembly[] assemblies)
        {
            var allAssemblies = assemblies.Union(new[] { typeof(HealthCheckerBuilder).Assembly }).ToArray();

            _healthChecksFunc = new AssemblyScanningHealthCheckStrategy(allAssemblies).ScanForHealthChecks;

            return(this);
        }
        public HealthCheckerBuilder WithHealthChecksFromAssemblies(params Assembly[] assemblies)
        {
#if NETSTANDARD1_6
            var allAssemblies = assemblies.Union(new[] { typeof(HealthCheckerBuilder).GetTypeInfo().Assembly }).ToArray();
#else
            var allAssemblies = assemblies.Union(new[] { typeof(HealthCheckerBuilder).Assembly }).ToArray();
#endif
            _healthChecksFunc = new AssemblyScanningHealthCheckStrategy(allAssemblies).ScanForHealthChecks;

            return(this);
        }
示例#4
0
 public HealthChecker(HealthCheckerConfiguration.GetHealthChecks healthChecksFunc, HealthCheckerConfiguration.LogError logException, TimeSpan timeout)
 {
     _healthChecksFunc = healthChecksFunc;
     _logException     = logException;
     _timeout          = timeout;
 }
示例#5
0
 public HealthChecker(HealthCheckerConfiguration.GetHealthChecks healthChecksFunc, HealthCheckerConfiguration.LogError logException, TimeSpan timeout)
 {
     _healthChecksFunc = healthChecksFunc;
     _logException = logException;
     _timeout = timeout;
 }
示例#6
0
 public HealthCheckerBuilder WithHealthChecks(HealthCheckerConfiguration.GetHealthChecks healthChecksFunc)
 {
     _healthChecksFunc = healthChecksFunc;
     return(this);
 }
 public HealthCheckerBuilder WithHealthChecks(HealthCheckerConfiguration.GetHealthChecks healthChecksFunc)
 {
     _healthChecksFunc = healthChecksFunc;
     return this;
 }