Skip to content

Commit f5181d8

Browse files
authored
refactor: inherit INotification into IDomainEvent (#95)
1 parent 9ca966b commit f5181d8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
namespace Cnblogs.Architecture.Ddd.Domain.Abstractions;
1+
using MediatR;
2+
3+
namespace Cnblogs.Architecture.Ddd.Domain.Abstractions;
24

35
/// <summary>
46
/// 领域事件标记。
57
/// </summary>
6-
public interface IDomainEvent
8+
public interface IDomainEvent : INotification
79
{
8-
}
10+
}

src/Cnblogs.Architecture.Ddd.Infrastructure.Abstractions/DispatchDomainEventExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Cnblogs.Architecture.Ddd.Domain.Abstractions;
1+
using Cnblogs.Architecture.Ddd.Domain.Abstractions;
22

33
// ReSharper disable once CheckNamespace
44
namespace MediatR;
@@ -33,4 +33,4 @@ public static async Task DispatchDomainEventsAsync(this IMediator mediator, IEnu
3333
throw e;
3434
}
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)