Newer
Older
TheCleanArchitecture / src / Application / Common / Models / DomainEventNotification.cs
@Derek Comartin Derek Comartin on 15 Jun 2021 406 bytes Reorganized
using CleanArchitecture.Domain.Common;
using MediatR;

namespace CleanArchitecture.Application.Common.Models
{
    public class DomainEventNotification<TDomainEvent> : INotification where TDomainEvent : DomainEvent
    {
        public DomainEventNotification(TDomainEvent domainEvent)
        {
            DomainEvent = domainEvent;
        }

        public TDomainEvent DomainEvent { get; }
    }
}