Class IdempotencyBackgroundService
- Namespace
- Quickie.Configuration.Idempotency
- Assembly
- Quickie.dll
Background service to remove expired idempotency key.
public class IdempotencyBackgroundService : BackgroundService, IHostedService, IDisposable
- Inheritance
-
IdempotencyBackgroundService
- Implements
- Inherited Members
Constructors
IdempotencyBackgroundService(IIdempotencyProvider)
Background service to remove expired idempotency key.
public IdempotencyBackgroundService(IIdempotencyProvider idempotencyProvider)
Parameters
idempotencyProviderIIdempotencyProvider
Methods
ExecuteAsync(CancellationToken)
This method is called when the IHostedService starts. The implementation should return a task that represents the lifetime of the long running operation(s) being performed.
protected override Task ExecuteAsync(CancellationToken stoppingToken)
Parameters
stoppingTokenCancellationTokenTriggered when StopAsync(CancellationToken) is called.
Returns
Remarks
See Worker Services in .NET for implementation guidelines.