- Add AvailabilityStatusDetails record and GetStatusDetailsAsync() to IAvailabilityService; implement in PersistentAvailabilityService so the admin-set reason stored in the database is returned alongside the status - AvailabilityController.GetStatus() now returns the stored message instead of hardcoded English strings - Add messageAvailable / messageMaintenance / messageUnavailable translation keys in en + nl so default messages are fully translatable - AvailabilityStatusBadge: Available always shows the translated default; Maintenance and Unavailable show the custom admin reason when set, otherwise fall back to the translated default Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
19 lines
581 B
C#
19 lines
581 B
C#
namespace SlpModularCms.Core.Availability;
|
|
|
|
/// <summary>
|
|
/// Service voor het controleren van de beschikbaarheid van het systeem.
|
|
/// </summary>
|
|
public interface IAvailabilityService
|
|
{
|
|
/// <summary>
|
|
/// Controleert de algemene beschikbaarheid van de API.
|
|
/// </summary>
|
|
/// <returns>De huidige <see cref="AvailabilityStatus"/>.</returns>
|
|
Task<AvailabilityStatus> IsAvailableAsync();
|
|
|
|
/// <summary>
|
|
/// Geeft de huidige status inclusief de optionele admin-melding terug.
|
|
/// </summary>
|
|
Task<AvailabilityStatusDetails> GetStatusDetailsAsync();
|
|
}
|