Generator Changes at 11/12/2025 1:32:03 AM +03:30
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using CMSMicroservice.Domain.Events;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace CMSMicroservice.Application.FactorDetailsCQ.EventHandlers;
|
||||
|
||||
public class CreateNewFactorDetailsEventHandler : INotificationHandler<CreateNewFactorDetailsEvent>
|
||||
{
|
||||
private readonly ILogger<
|
||||
CreateNewFactorDetailsEventHandler> _logger;
|
||||
|
||||
public CreateNewFactorDetailsEventHandler(ILogger<CreateNewFactorDetailsEventHandler> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public Task Handle(CreateNewFactorDetailsEvent notification, CancellationToken cancellationToken)
|
||||
{
|
||||
_logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().Name);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using CMSMicroservice.Domain.Events;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace CMSMicroservice.Application.FactorDetailsCQ.EventHandlers;
|
||||
|
||||
public class DeleteFactorDetailsEventHandler : INotificationHandler<DeleteFactorDetailsEvent>
|
||||
{
|
||||
private readonly ILogger<
|
||||
DeleteFactorDetailsEventHandler> _logger;
|
||||
|
||||
public DeleteFactorDetailsEventHandler(ILogger<DeleteFactorDetailsEventHandler> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public Task Handle(DeleteFactorDetailsEvent notification, CancellationToken cancellationToken)
|
||||
{
|
||||
_logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().Name);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using CMSMicroservice.Domain.Events;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace CMSMicroservice.Application.FactorDetailsCQ.EventHandlers;
|
||||
|
||||
public class UpdateFactorDetailsEventHandler : INotificationHandler<UpdateFactorDetailsEvent>
|
||||
{
|
||||
private readonly ILogger<
|
||||
UpdateFactorDetailsEventHandler> _logger;
|
||||
|
||||
public UpdateFactorDetailsEventHandler(ILogger<UpdateFactorDetailsEventHandler> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public Task Handle(UpdateFactorDetailsEvent notification, CancellationToken cancellationToken)
|
||||
{
|
||||
_logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().Name);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user