mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-06-29 18:21:08 +00:00
33 lines
944 B
C#
33 lines
944 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using CleanArchitecture.Domain.Events.User;
|
|
using MediatR;
|
|
|
|
namespace CleanArchitecture.Domain.EventHandler;
|
|
|
|
public sealed class UserEventHandler :
|
|
INotificationHandler<UserDeletedEvent>,
|
|
INotificationHandler<UserCreatedEvent>,
|
|
INotificationHandler<UserUpdatedEvent>,
|
|
INotificationHandler<PasswordChangedEvent>
|
|
{
|
|
public Task Handle(PasswordChangedEvent notification, CancellationToken cancellationToken)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
public Task Handle(UserCreatedEvent notification, CancellationToken cancellationToken)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
public Task Handle(UserDeletedEvent notification, CancellationToken cancellationToken)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
public Task Handle(UserUpdatedEvent notification, CancellationToken cancellationToken)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
} |