public static void RegisterTests(HealthCheckService svc)
        {
            svc.Add(new NotDebugTest(1));
            svc.Add(new DbConnectionTest(2));
			svc.Add(new SmtpTest(3));
            svc.Setup<Hubs.HealthCheckHub>();
            svc.Trace();
        }
Ejemplo n.º 2
0
 public TestMonitor(HealthCheckService service, string key, ITest test)
 {
     this.Key = key;
     this.test = test;
     this.Result = null;
     this.Events = new List<TestEvent>();
     this.cancelToken = new CancellationToken();
 }
Ejemplo n.º 3
0
 public TestMonitor(HealthCheckService service, string key, ITest test)
 {
     this.Key         = key;
     this.test        = test;
     this.Result      = null;
     this.Events      = new List <TestEvent>();
     this.cancelToken = new CancellationToken();
 }
 public static void RegisterTests(HealthCheckService svc)
 {
     svc.Add(new NotDebugTest(0));
     svc.Add(new DbConnectionTest(1));
     svc.Setup<SSW.HealthCheck.MVC4.Examples.Hubs.HealthCheckHub>();
 }