Generator Changes at 9/27/2025 8:46:36 AM
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
using CMSMicroservice.Domain.Events;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace CMSMicroservice.Application.UserRoleCQ.EventHandlers;
|
||||
|
||||
public class CreateNewUserRoleEventHandler : INotificationHandler<CreateNewUserRoleEvent>
|
||||
{
|
||||
private readonly ILogger<CreateNewUserRoleEventHandler> _logger;
|
||||
|
||||
public CreateNewUserRoleEventHandler(ILogger<CreateNewUserRoleEventHandler> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public Task Handle(CreateNewUserRoleEvent notification, CancellationToken cancellationToken)
|
||||
{
|
||||
_logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().Name);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using CMSMicroservice.Domain.Events;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace CMSMicroservice.Application.UserRoleCQ.EventHandlers;
|
||||
|
||||
public class DeleteUserRoleEventHandler : INotificationHandler<DeleteUserRoleEvent>
|
||||
{
|
||||
private readonly ILogger<DeleteUserRoleEventHandler> _logger;
|
||||
|
||||
public DeleteUserRoleEventHandler(ILogger<DeleteUserRoleEventHandler> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public Task Handle(DeleteUserRoleEvent notification, CancellationToken cancellationToken)
|
||||
{
|
||||
_logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().Name);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using CMSMicroservice.Domain.Events;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace CMSMicroservice.Application.UserRoleCQ.EventHandlers;
|
||||
|
||||
public class UpdateUserRoleEventHandler : INotificationHandler<UpdateUserRoleEvent>
|
||||
{
|
||||
private readonly ILogger<UpdateUserRoleEventHandler> _logger;
|
||||
|
||||
public UpdateUserRoleEventHandler(ILogger<UpdateUserRoleEventHandler> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public Task Handle(UpdateUserRoleEvent notification, CancellationToken cancellationToken)
|
||||
{
|
||||
_logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().Name);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user