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