You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PLT-PDA/Admin.Core.Extensions/EventHandling/AdminDeletedIntegrationEven...

30 lines
965 B
C#

1 year ago
using Admin.Core.Common;
using Admin.Core.EventBus;
using Microsoft.Extensions.Logging;
using System;
using System.Threading.Tasks;
namespace Admin.Core.Extensions
{
public class AdminDeletedIntegrationEventHandler : IIntegrationEventHandler<AdminDeletedIntegrationEvent>
{
private readonly ILogger<AdminDeletedIntegrationEventHandler> _logger;
public AdminDeletedIntegrationEventHandler(
ILogger<AdminDeletedIntegrationEventHandler> logger)
{
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
}
public Task Handle(AdminDeletedIntegrationEvent @event)
{
_logger.LogInformation("----- Handling integration event: {IntegrationEventId} at {AppName} - ({@IntegrationEvent})", @event.Id, "Admin.Core", @event);
//await _AdminArticleServices.DeleteById(@event.AdminId.ToString());
return Task.CompletedTask;
}
}
}