Files
CMS/src/CMSMicroservice.Application/TransactionsCQ/EventHandlers/UpdateTransactionsEventHandlers/UpdateTransactionsEventHandler.cs
T
2025-11-12 02:24:02 +03:30

23 lines
686 B
C#

using CMSMicroservice.Domain.Events;
using Microsoft.Extensions.Logging;
namespace CMSMicroservice.Application.TransactionsCQ.EventHandlers;
public class UpdateTransactionsEventHandler : INotificationHandler<UpdateTransactionsEvent>
{
private readonly ILogger<
UpdateTransactionsEventHandler> _logger;
public UpdateTransactionsEventHandler(ILogger<UpdateTransactionsEventHandler> logger)
{
_logger = logger;
}
public Task Handle(UpdateTransactionsEvent notification, CancellationToken cancellationToken)
{
_logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().Name);
return Task.CompletedTask;
}
}