Clean Architecture Demo
Loading...
Searching...
No Matches
TaskManagement.Application.Events.TaskCompletedNotificationHandler Class Referencesealed

TaskCompletedNotificationHandler envía una notificación cuando se completa una tarea. More...

Inheritance diagram for TaskManagement.Application.Events.TaskCompletedNotificationHandler:
Collaboration diagram for TaskManagement.Application.Events.TaskCompletedNotificationHandler:

Public Member Functions

 TaskCompletedNotificationHandler (IEmailService emailService)
Task HandleAsync (TaskCompletedEvent domainEvent, CancellationToken cancellationToken=default)
Public Member Functions inherited from TaskManagement.Application.Events.IDomainEventSubscriber< in TEvent >
Task HandleAsync (TEvent domainEvent, CancellationToken cancellationToken=default)

Detailed Description

TaskCompletedNotificationHandler envía una notificación cuando se completa una tarea.

Rol en Clean Architecture:

  • Parte de la capa de aplicación: notificar al completar una tarea es una política de la aplicación, no un detalle técnico
  • Usa el puerto de salida IEmailService; no sabe cómo se envía la notificación

Definition at line 17 of file TaskCompletedNotificationHandler.cs.

Constructor & Destructor Documentation

◆ TaskCompletedNotificationHandler()

TaskManagement.Application.Events.TaskCompletedNotificationHandler.TaskCompletedNotificationHandler ( IEmailService emailService)

Definition at line 21 of file TaskCompletedNotificationHandler.cs.

Member Function Documentation

◆ HandleAsync()

Task TaskManagement.Application.Events.TaskCompletedNotificationHandler.HandleAsync ( TaskCompletedEvent domainEvent,
CancellationToken cancellationToken = default )

Definition at line 26 of file TaskCompletedNotificationHandler.cs.


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