Moved DI extensions to Appl;ication layer

This commit is contained in:
2026-08-30 14:49:10 +02:00
parent f51b1feb4b
commit 0f7f875abe
12 changed files with 51 additions and 52 deletions
@@ -7,3 +7,13 @@ public class SyncUserEvent : EventBase, IEvent
{
public string Name { get; set; } = nameof(SyncUserEvent);
}
public class SyncUserEventHandler(ILogger<SyncUserEvent> logger) : INotificationHandler<SyncUserEvent>
{
public ValueTask Handle(SyncUserEvent notification, CancellationToken cancellationToken)
{
logger.LogInformation("Integration Sync executed. Correlation ID: {CorrelationId}", notification.CorrelationId);
return ValueTask.CompletedTask;
}
}
@@ -1,11 +0,0 @@
namespace PostFundManagement.Application.Communications.Events;
public class SyncUserEventHandler(ILogger<SyncUserEvent> logger) : INotificationHandler<SyncUserEvent>
{
public ValueTask Handle(SyncUserEvent notification, CancellationToken cancellationToken)
{
logger.LogInformation("Integration Sync executed. Correlation ID: {CorrelationId}", notification.CorrelationId);
return ValueTask.CompletedTask;
}
}