From 4c3244261fb47fcf1e8996355b76084159f641ab Mon Sep 17 00:00:00 2001 From: Kamran Sadin Date: Wed, 13 Aug 2025 22:40:53 +0330 Subject: [PATCH] Fix DomainEvents --- .../Blog/EventHandlers/PostCreatedDomainEventHandler.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Samples/BlogApp/Project.Application/Blog/EventHandlers/PostCreatedDomainEventHandler.cs b/Samples/BlogApp/Project.Application/Blog/EventHandlers/PostCreatedDomainEventHandler.cs index 500e435..fd67b84 100644 --- a/Samples/BlogApp/Project.Application/Blog/EventHandlers/PostCreatedDomainEventHandler.cs +++ b/Samples/BlogApp/Project.Application/Blog/EventHandlers/PostCreatedDomainEventHandler.cs @@ -15,13 +15,13 @@ public PostCreatedDomainEventHandler(ILogger logg public Task Handle(PostCreatedDomainEvent notification, CancellationToken cancellationToken) { - _logger.LogInformation("Post created: {PostId} - {Title}", notification.PostId, notification.Title); - + _logger.LogInformation("Post created:: {PostId} - {Title}", notification.PostId, notification.Title); + // Here you can add additional business logic like: // - Sending notifications // - Updating read models // - Triggering external systems - + return Task.CompletedTask; } } \ No newline at end of file