feat(Worker): Implementa servicio de notificación para alertas de fallos críticos - Se remueve .env y se utilizan appsettings.Development.json y User Secrets

This commit is contained in:
2025-07-03 15:55:48 -03:00
parent 4cc9d239cf
commit 20b6babc37
12 changed files with 292 additions and 212 deletions

View File

@@ -0,0 +1,15 @@
namespace Mercados.Infrastructure.Services
{
/// <summary>
/// Define un servicio para enviar notificaciones y alertas.
/// </summary>
public interface INotificationService
{
/// <summary>
/// Envía una alerta de fallo crítico.
/// </summary>
/// <param name="subject">El título de la alerta.</param>
/// <param name="message">El mensaje detallado del error.</param>
Task SendFailureAlertAsync(string subject, string message, DateTime? eventTimeUtc = null);
}
}