Clean Architecture Demo
Loading...
Searching...
No Matches
TaskManagement.Application.Commands.CompleteTaskInteractor Class Referencesealed

CompleteTaskInteractor implementa el caso de uso de completar una tarea. More...

Inheritance diagram for TaskManagement.Application.Commands.CompleteTaskInteractor:
Collaboration diagram for TaskManagement.Application.Commands.CompleteTaskInteractor:

Public Member Functions

 CompleteTaskInteractor (ITaskRepository taskRepository, IUnitOfWork unitOfWork, IDomainEventDispatcher eventDispatcher, ICompleteTaskOutputBoundary output)
async Task ExecuteAsync (CompleteTaskInput input, CancellationToken cancellationToken=default)

Detailed Description

CompleteTaskInteractor implementa el caso de uso de completar una tarea.

Rol en Clean Architecture:

  • Parte de la capa de aplicación
  • Orquesta el caso de uso: la regla de negocio está en TaskItem.Complete
  • Distingue los resultados posibles con ICompleteTaskOutputBoundary: el presenter no tiene que interpretar mensajes de error

Definition at line 18 of file CompleteTaskInteractor.cs.

Constructor & Destructor Documentation

◆ CompleteTaskInteractor()

TaskManagement.Application.Commands.CompleteTaskInteractor.CompleteTaskInteractor ( ITaskRepository taskRepository,
IUnitOfWork unitOfWork,
IDomainEventDispatcher eventDispatcher,
ICompleteTaskOutputBoundary output )

Definition at line 25 of file CompleteTaskInteractor.cs.

Here is the caller graph for this function:

Member Function Documentation

◆ ExecuteAsync()

async Task TaskManagement.Application.Commands.CompleteTaskInteractor.ExecuteAsync ( CompleteTaskInput input,
CancellationToken cancellationToken = default )

Implements TaskManagement.Application.Commands.ICompleteTaskInputBoundary.

Definition at line 37 of file CompleteTaskInteractor.cs.

Here is the call graph for this function:

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