add error reporting health check (#667)

This commit is contained in:
Jason Dove
2022-03-02 14:51:15 -06:00
committed by GitHub
parent b1c905233f
commit 24ef5e68eb
4 changed files with 44 additions and 2 deletions
+2
View File
@@ -83,6 +83,7 @@ namespace ErsatzTV
public void ConfigureServices(IServiceCollection services)
{
BugsnagConfiguration bugsnagConfig = Configuration.GetSection("Bugsnag").Get<BugsnagConfiguration>();
services.Configure<BugsnagConfiguration>(Configuration.GetSection("Bugsnag"));
services.AddBugsnag(
configuration =>
@@ -288,6 +289,7 @@ namespace ErsatzTV
services.AddScoped<IZeroDurationHealthCheck, ZeroDurationHealthCheck>();
services.AddScoped<IFileNotFoundHealthCheck, FileNotFoundHealthCheck>();
services.AddScoped<IVaapiDriverHealthCheck, VaapiDriverHealthCheck>();
services.AddScoped<IErrorReportsHealthCheck, ErrorReportsHealthCheck>();
services.AddScoped<IHealthCheckService, HealthCheckService>();
services.AddScoped<IChannelRepository, ChannelRepository>();