Clean Architecture Demo
Loading...
Searching...
No Matches
TaskManagement.Infrastructure.Email.LoggingEmailService Class Referencesealed

LoggingEmailService es una implementación de IEmailService que, en lugar de enviar correos reales, registra las notificaciones en el log. More...

Inheritance diagram for TaskManagement.Infrastructure.Email.LoggingEmailService:
Collaboration diagram for TaskManagement.Infrastructure.Email.LoggingEmailService:

Public Member Functions

 LoggingEmailService (ILogger< LoggingEmailService > logger)
Task SendTaskCompletedNotificationAsync (Guid taskId, CancellationToken cancellationToken=default)

Detailed Description

LoggingEmailService es una implementación de IEmailService que, en lugar de enviar correos reales, registra las notificaciones en el log.

Rol en Clean Architecture:

  • Parte de la capa de Infraestructura
  • Implementa la interfaz IEmailService -definida en la capa de aplicación-
  • Puede reemplazarse por una implementación real -SMTP, SendGrid, etc.- sin modificar las capas de aplicación ni del dominio

Definition at line 20 of file LoggingEmailService.cs.

Constructor & Destructor Documentation

◆ LoggingEmailService()

TaskManagement.Infrastructure.Email.LoggingEmailService.LoggingEmailService ( ILogger< LoggingEmailService > logger)

Definition at line 30 of file LoggingEmailService.cs.

Member Function Documentation

◆ SendTaskCompletedNotificationAsync()

Task TaskManagement.Infrastructure.Email.LoggingEmailService.SendTaskCompletedNotificationAsync ( Guid taskId,
CancellationToken cancellationToken = default )

The documentation for this class was generated from the following file: