-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATRO23-58] Add IDomainEventHandler
- Loading branch information
1 parent
0ed0f78
commit bf438a3
Showing
5 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/modules/example/infrastructure/Domain/ExampleRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/shared/infrastructure/EventHandlers/IDomainEventHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Intive.Patronage2023.Shared.Abstractions.Events; | ||
using MediatR; | ||
|
||
namespace Intive.Patronage2023.Shared.Infrastructure.EventHandlers | ||
{ | ||
/// <summary> | ||
/// Domain event handler base interface. | ||
/// </summary> | ||
/// <typeparam name="TEvent">Event type.</typeparam> | ||
public interface IDomainEventHandler<TEvent> : INotificationHandler<TEvent> | ||
where TEvent : IEvent | ||
{ | ||
} | ||
} |