WIP
This commit is contained in:
parent
54b057886c
commit
7fc1ae0650
204 changed files with 4345 additions and 134 deletions
13
PlanTempus.Core/Outbox/IOutboxService.cs
Normal file
13
PlanTempus.Core/Outbox/IOutboxService.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#nullable enable
|
||||
|
||||
using System.Data;
|
||||
|
||||
namespace PlanTempus.Core.Outbox;
|
||||
|
||||
public interface IOutboxService
|
||||
{
|
||||
Task EnqueueAsync(string type, object payload, IDbConnection? connection = null, IDbTransaction? transaction = null);
|
||||
Task<List<OutboxMessage>> GetPendingAsync(int batchSize = 10);
|
||||
Task MarkAsSentAsync(Guid id);
|
||||
Task MarkAsFailedAsync(Guid id, string errorMessage);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue