public Task OnAfterAttempt(AfterAttemptEvent @event)
        {
            if (@event.Result.Success)
            {
                existing.Add(@event.Result.Value);
            }

            return(Task.FromResult(0));
        }
Exemple #2
0
 public Task OnAfterAttempt(AfterAttemptEvent @event)
 {
     return(Task.FromResult(0));
 }
 protected virtual async Task OnAfterAttempt(AfterAttemptEvent @event)
 {
     var onBefore = listeners.Select(e => e.OnAfterAttempt(@event));
     await Task.WhenAll(onBefore);
 }
 protected override async Task OnAfterAttempt(AfterAttemptEvent @event)
 {
     sb.Clear();
     await base.OnAfterAttempt(@event);
 }