PlanTempusApp/Core/Outbox/IOutboxService.cs
Janus C. H. Knudsen 54b057886c 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
2026-01-10 11:13:33 +01:00

13 lines
379 B
C#

#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);
}