Generator Changes at 9/27/2025 8:46:36 AM

This commit is contained in:
generator
2025-09-27 08:46:36 +03:30
parent fd82e3edcf
commit fd8614f72e
261 changed files with 6333 additions and 0 deletions
@@ -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;
}
}
@@ -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;
}
}
@@ -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;
}
}