public async Task Execute() { var bound = DateTime.UtcNow.Add(-_expiration); await _spentOutputRepository.RemoveOldOutputsAsync(bound); }
public async Task Clean() { var bound = DateTime.UtcNow.AddDays(-_settings.SpentOutputsExpirationDays); await _spentOutputRepository.RemoveOldOutputsAsync(bound); }