Added better error handling and daemon health check

This commit is contained in:
Marcel Baumgartner
2023-06-09 14:38:30 +02:00
parent bd8ba11410
commit fc319f0f73
4 changed files with 97 additions and 12 deletions

View File

@@ -70,7 +70,8 @@ namespace Moonlight
builder.Services.AddHttpContextAccessor();
builder.Services.AddHealthChecks()
.AddCheck<DatabaseHealthCheck>("Database")
.AddCheck<NodeHealthCheck>("Nodes");
.AddCheck<NodeHealthCheck>("Nodes")
.AddCheck<DaemonHealthCheck>("Daemons");
// Databases
builder.Services.AddDbContext<DataContext>();