creates simple healthchecks

This commit is contained in:
2025-08-25 23:46:04 +02:00
commit b81eb5b9f5
21 changed files with 2835 additions and 0 deletions

16
Abstracts/IHealthCheck.cs Normal file
View File

@@ -0,0 +1,16 @@
using System.ComponentModel;
namespace MCVIngenieros.Healthchecks.Abstracts;
// Health check interface
[EditorBrowsable(EditorBrowsableState.Never)]
public interface IHealthCheck
{
int? RetryAttempts { get; }
TimeSpan? Timeout { get; }
TimeSpan? RetryDelay { get; }
HealthCheckSeverity? Severity { get; }
string? Description { get; }
Task<HealthCheckResult> CheckAsync(CancellationToken cancellationToken = default);
}