Files
Heimdall/src/Heimdall.Infrastructure/Jobs/NotificationDeliveryJob.cs
T

11 lines
401 B
C#
Raw Normal View History

using Hangfire;
using Heimdall.Infrastructure.Services;
namespace Heimdall.Infrastructure.Jobs;
public sealed class NotificationDeliveryJob(NotificationDeliveryProcessor processor)
{
[AutomaticRetry(Attempts = 3, OnAttemptsExceeded = AttemptsExceededAction.Fail)]
public Task ExecuteAsync(Guid deliveryId, CancellationToken ct = default) =>
processor.ProcessAsync(deliveryId, ct);
}