Пример #1
0
 public HealthModule(ICacheManager <Dependency> healthCache)
 {
     Put("/health/{appName}/{appId}", async(args) => {
         return(await HealthHandler.UpdateApplicationStatus(this.Bind <Ping>(), Services.HealthService.Update));
     });
 }
Пример #2
0
        public async Task ShouldUpdateStatusForApplicationAndReturnHealth()
        {
            var response = await HealthHandler.UpdateApplicationStatus(_ping, _update);

            Assert.True(response.Healthy);
        }