23 lines
659 B
C#
23 lines
659 B
C#
using LiteCharms.Features.TechShop.HealthChecks;
|
|
using static LiteCharms.Features.TechShop.Extensions.Postgres;
|
|
|
|
namespace LiteCharms.Features.TechShop.Extensions;
|
|
|
|
public static class HealthChecks
|
|
{
|
|
public static IServiceCollection AddShopQuartzHealthCheck(this IServiceCollection services)
|
|
{
|
|
services.AddHealthChecks().AddCheck<ShopQuartzHealthCheck>("ShopQuartz");
|
|
|
|
return services;
|
|
}
|
|
|
|
|
|
public static IServiceCollection AddShopPostgresHealthCheck(this IServiceCollection services)
|
|
{
|
|
services.AddHealthChecks().AddCheck<PostgresShopHealthCheck>(TechShopDbConfigName);
|
|
|
|
return services;
|
|
}
|
|
}
|