-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(TransactionalOutbox): add Transactional Outbox pattern implement…
…ation - Added new projects `ES.FX.TransactionalOutbox.EntityFrameworkCore` and `ES.FX.TransactionalOutbox.EntityFrameworkCore.SqlServer`.
- Loading branch information
1 parent
b1f4a56
commit 51b16de
Showing
75 changed files
with
1,855 additions
and
184 deletions.
There are no files selected for viewing
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
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
17 changes: 17 additions & 0 deletions
17
playground/Playground.Microservice.Api.Host/Testing/OutboxMessageHandler.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,17 @@ | ||
using ES.FX.TransactionalOutbox.EntityFrameworkCore.Delivery; | ||
|
||
namespace Playground.Microservice.Api.Host.Testing; | ||
|
||
public class OutboxMessageHandler : IOutboxMessageHandler | ||
{ | ||
public ValueTask<bool> IsReadyAsync() => ValueTask.FromResult(true); | ||
|
||
public async ValueTask<bool> HandleAsync(OutboxMessageHandlerContext context, | ||
CancellationToken cancellationToken = default) | ||
{ | ||
await Task.CompletedTask; | ||
|
||
|
||
return true; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
playground/Playground.Microservice.Api.Host/Testing/OutboxTestMessage.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,6 @@ | ||
using ES.FX.TransactionalOutbox.EntityFrameworkCore.Messages; | ||
|
||
namespace Playground.Microservice.Api.Host.Testing; | ||
|
||
[OutboxMessageType("SomeTestMessage")] | ||
public record OutboxTestMessage(string SomeProp); |
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.