Clean Architecture Demo
Loading...
Searching...
No Matches
TaskManagement.Application.Events.IDomainEventSubscriber< in TEvent > Interface Template Reference

IDomainEventSubscriber es la reacción de la aplicación a un evento del dominio. More...

Inheritance diagram for TaskManagement.Application.Events.IDomainEventSubscriber< in TEvent >:
Collaboration diagram for TaskManagement.Application.Events.IDomainEventSubscriber< in TEvent >:

Public Member Functions

Task HandleAsync (TEvent domainEvent, CancellationToken cancellationToken=default)

Detailed Description

IDomainEventSubscriber es la reacción de la aplicación a un evento del dominio.

Rol en Clean Architecture:

  • Parte de la capa de aplicación
  • Lo implementan las clases que definen qué hacer cuando ocurre un evento
  • Lo invoca la implementación de IDomainEventDispatcher
Template Parameters
TEventEl tipo de evento del dominio que se maneja.
Type Constraints
TEvent :DomainEvent 

Definition at line 17 of file IDomainEventSubscriber.cs.

Member Function Documentation

◆ HandleAsync()

Task TaskManagement.Application.Events.IDomainEventSubscriber< in TEvent >.HandleAsync ( TEvent domainEvent,
CancellationToken cancellationToken = default )

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