Adds transactional outbox and email verification
Implements outbox pattern for reliable message delivery Adds email verification flow with Postmark integration Enhances account registration with secure token generation Introduces background processing for asynchronous email sending Implements database-level notification mechanism for message processing
This commit is contained in:
parent
88812177a9
commit
54b057886c
35 changed files with 1174 additions and 358 deletions
13
Core/Outbox/IOutboxService.cs
Normal file
13
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