$mermaidjs
Clean Architecture Demo
Loading...
Searching...
No Matches
TaskManagement.Application.Commands.CreateTaskCommand Class Referencesealed

CreateTaskCommand encapsula la solicitud de creación de una nueva tarea. More...

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

Public Member Functions

 CreateTaskCommand (string title, string description, TaskPriority priority, DateTime? dueDate, Guid createdBy)
 

Properties

string Title [get, set]
 
string Description [get, set]
 
TaskPriority Priority [get, set]
 
DateTime? DueDate [get, set]
 
Guid CreatedBy [get, set]
 

Detailed Description

CreateTaskCommand encapsula la solicitud de creación de una nueva tarea.

Rol en Clean Architecture:

  • Parte de la capa de aplicación
  • Un comando en CQRS representa una solicitud para realizar una operación que cambia estado
  • Transporta parámetros de entrada desde la capa de API a la lógica de aplicación
  • Es un DTO de entrada para crear una tarea
  • Implementa MediatR IRequest para inyección de dependencias y procesamiento de middleware

Patrón CQRS -CommandQueryResponsibilitySeparation-:

  • Comando: Muta el estado del sistema, como CreateTaskCommand
  • Consulta: Lee datos sin efectos secundarios -separada de comandos- como TaskManagement.Application.Queries.GetTaskByIdQuery
  • Separación: Permite optimización independiente de operaciones de lectura y escritura
  • Este comando específíco representa la intención del usuario de crear una tarea

Definition at line 37 of file CreateTaskCommand.cs.

Constructor & Destructor Documentation

◆ CreateTaskCommand()

TaskManagement.Application.Commands.CreateTaskCommand.CreateTaskCommand ( string  title,
string  description,
TaskPriority  priority,
DateTime?  dueDate,
Guid  createdBy 
)

Definition at line 45 of file CreateTaskCommand.cs.

Property Documentation

◆ CreatedBy

Guid TaskManagement.Application.Commands.CreateTaskCommand.CreatedBy
getset

Definition at line 43 of file CreateTaskCommand.cs.

◆ Description

string TaskManagement.Application.Commands.CreateTaskCommand.Description
getset

Definition at line 40 of file CreateTaskCommand.cs.

◆ DueDate

DateTime? TaskManagement.Application.Commands.CreateTaskCommand.DueDate
getset

Definition at line 42 of file CreateTaskCommand.cs.

◆ Priority

TaskPriority TaskManagement.Application.Commands.CreateTaskCommand.Priority
getset

Definition at line 41 of file CreateTaskCommand.cs.

◆ Title

string TaskManagement.Application.Commands.CreateTaskCommand.Title
getset

Definition at line 39 of file CreateTaskCommand.cs.


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