11 lines
401 B
C#
11 lines
401 B
C#
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);
|
||
|
|
}
|