aspnetcore/test/Microsoft.Extensions.Diagno...
Ryan Nowak 3e4a3d0b90
Allow health checks to use any DI lifetime (#466)
* Allow health checks to use any DI lifetime

This change allows registered IHealthCheck implementations to use any DI
lifetime. This is necessary for scenarios like using EF which requires a
scope.

The works by having the health check service create a scope for each
time it queries health checks. This scope does not overlap or share
state with other scopes (the request scope) so there is no crosstalk
between processing going on per-request in ASP.NET Core and the health
check operation.

* PR feedback and some logging cleanup
2018-08-30 10:51:48 -07:00
..
CompositeHealthCheckResultTests.cs
HealthCheckServiceTests.cs Allow health checks to use any DI lifetime (#466) 2018-08-30 10:51:48 -07:00
HealthChecksBuilderTests.cs Allow health checks to use any DI lifetime (#466) 2018-08-30 10:51:48 -07:00
Microsoft.Extensions.Diagnostics.HealthChecks.Tests.csproj Target netcoreapp2.1 in tests and samples 2017-11-10 19:43:28 -08:00
ServiceCollectionExtensionsTests.cs