mirror of
https://github.com/farcasclaudiu/PracticeCalendar.git
synced 2026-06-22 07:01:16 +03:00
15 lines
358 B
C#
15 lines
358 B
C#
using MediatR;
|
|
|
|
namespace PracticeCalendar.Domain.Common
|
|
{
|
|
public class DomainEventNotification<TDomainEvent> : INotification where TDomainEvent : DomainEventBase
|
|
{
|
|
public TDomainEvent DomainEvent { get; }
|
|
|
|
public DomainEventNotification(TDomainEvent domainEvent)
|
|
{
|
|
DomainEvent = domainEvent;
|
|
}
|
|
}
|
|
}
|