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.UserWalletCQ.EventHandlers;
|
||||
|
||||
public class CreateNewUserWalletEventHandler : INotificationHandler<CreateNewUserWalletEvent>
|
||||
{
|
||||
private readonly ILogger<
|
||||
CreateNewUserWalletEventHandler> _logger;
|
||||
|
||||
public CreateNewUserWalletEventHandler(ILogger<CreateNewUserWalletEventHandler> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public Task Handle(CreateNewUserWalletEvent notification, CancellationToken cancellationToken)
|
||||
{
|
||||
_logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().Name);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user