public async Task UpdateClientInfo(UpdateClientInfoRequest request) { await Policy .Handle <WebException>() .WaitAndRetryAsync ( retryCount: 5, sleepDurationProvider: retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)) ) .ExecuteAsync(async() => await PottiRomaApiAccess.GetPottiRomaApi <IClientsRefit>().UpdateClientInfo(request) ); }
public async Task UpdateClientInfo(UpdateClientInfoRequest request) { await ClientsApiRepository.Get().UpdateClientInfo(request); }