-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix:优化 * 1 * feat:add Aggregate root object creation, modification, and deletion events * feat:optimization topic default value * feat:init event * feat:test bulkevent * feat:update BulkMarkEventAsInProgress * fix:IntegrationEvents.Tests.Infrastructure.CustomIntegrationEventLogService * fix:resolve conflicts * feat:remove test api * fix:DefaultUserContext * fix:optimization * fix:取消集成事件默认Topic,可能引起命名冲突优化 * fix:remove backup.csproj * fix:TestEntityCreatedEventAsync
- Loading branch information
Showing
31 changed files
with
823 additions
and
68 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
...nIdConnect.Domain/Masa - Backup.BuildingBlocks.Authentication.OpenIdConnect.Domain.csproj
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/BuildingBlocks/Ddd/Domain/Masa.BuildingBlocks.Ddd.Domain.Tests/EventTest.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
15 changes: 15 additions & 0 deletions
15
src/BuildingBlocks/Ddd/Domain/Masa.BuildingBlocks.Ddd.Domain/Events/EntityChangedEvent.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,15 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.Ddd.Domain.Events | ||
{ | ||
public abstract record class EntityChangedEvent<TEntity> : DomainCommand | ||
{ | ||
public TEntity Entity { get; set; } | ||
|
||
public EntityChangedEvent(TEntity entity) | ||
{ | ||
Entity = entity; | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ildingBlocks/Ddd/Domain/Masa.BuildingBlocks.Ddd.Domain/Events/EntityCreatedDomainEvent.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,12 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.Ddd.Domain.Events | ||
{ | ||
public record class EntityCreatedDomainEvent<TEntity> : EntityChangedEvent<TEntity> | ||
{ | ||
public EntityCreatedDomainEvent(TEntity entity) : base(entity) | ||
{ | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ildingBlocks/Ddd/Domain/Masa.BuildingBlocks.Ddd.Domain/Events/EntityDeletedDomainEvent.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,12 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.Ddd.Domain.Events | ||
{ | ||
public record class EntityDeletedDomainEvent<TEntity> : EntityChangedEvent<TEntity> | ||
{ | ||
public EntityDeletedDomainEvent(TEntity entity) : base(entity) | ||
{ | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ldingBlocks/Ddd/Domain/Masa.BuildingBlocks.Ddd.Domain/Events/EntityModifiedDomainEvent.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,12 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.Ddd.Domain.Events | ||
{ | ||
public record class EntityModifiedDomainEvent<TEntity> : EntityChangedEvent<TEntity> | ||
{ | ||
public EntityModifiedDomainEvent(TEntity entity) : base(entity) | ||
{ | ||
} | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
...ocks.Development.DaprStarter/Masa - Backup.BuildingBlocks.Development.DaprStarters.csproj
This file was deleted.
Oops, something went wrong.
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
4 changes: 3 additions & 1 deletion
4
...uildingBlocks/Exception/Masa.BuildingBlocks.Exceptions.Tests/UserFriendlyExceptionTest.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
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
Oops, something went wrong.