Skip to content

Commit 6a85713

Browse files
committed
add abstract class Domain/Integration
1 parent b158a68 commit 6a85713

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
namespace Modular.Monolithic.Architecture.Helper.Domain.Events.Domain
5+
{
6+
public abstract record DomainEvent(Guid Id) : IDomainEvent
7+
{
8+
public DateTime OccurredOn => DateTime.UtcNow;
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
namespace Modular.Monolithic.Architecture.Helper.Domain.Events.Integration
5+
{
6+
public abstract record IntegrationEvent(Guid Id) : IIntegrationEvent
7+
{
8+
public DateTime OccurredOn => DateTime.UtcNow;
9+
}
10+
}

0 commit comments

Comments
 (0)