public async Task <object> FetchSomethingAsync() { var policy = CreateRetryPolicy(true); var result = await policy.ExecuteAndCaptureAsync(() => _target.FetchSomethingAsync()); return(result.Result); }
public async Task <object> FetchSomethingAsync() { var policy = CreateRetryPolicy(true); var result = await policy.ExecuteAndCaptureAsync(() => _target.FetchSomethingAsync()); return(result.Result); }