Exemplo n.º 1
0
 public HealthCheckModule(IHealthCheckHandler healthCheckHandler, List <string> templateAssemblies, string templateName)
     : base("/healthcheck")
 {
     RegisterRoutes();
     template                = new VelocityTemplate(templateAssemblies);
     this.templateName       = templateName;
     this.healthCheckHandler = healthCheckHandler;
 }
Exemplo n.º 2
0
        public HealthCheckModule() : base("/healthcheck")
        {
            RegisterRoutes();

            template = new VelocityTemplate(new List <string>(new[] {
                typeof(IHealthCheck).Assembly.GetName().Name
            }));

            templateName = @"Common.HealthCheck.Template.Views.Index.htm";

            healthCheckHandler = IoCContainer.Instance.HealthCheckHandler;
        }