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