redo
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using back.ServicesExtensions;
|
||||
using healthchecks;
|
||||
using MCVIngenieros.Healthchecks;
|
||||
|
||||
namespace back;
|
||||
|
||||
@@ -13,11 +13,7 @@ public class Program
|
||||
|
||||
builder.Services.AddControllers();
|
||||
|
||||
builder.Services.AddHealthChecks(options => {
|
||||
options.CacheDuration = TimeSpan.FromMinutes(30);
|
||||
options.Timeout = TimeSpan.FromSeconds(5);
|
||||
options.AssembliesToScan = [typeof(Program).Assembly];
|
||||
}).DiscoverHealthChecks();
|
||||
builder.Services.AddHealthChecksSupport().DiscoverHealthChecks();
|
||||
|
||||
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
|
||||
builder.Services.AddSwaggerGen();
|
||||
|
Reference in New Issue
Block a user