Beispiel #1
0
 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)
                   );
 }
Beispiel #2
0
 public async Task UpdateClientInfo(UpdateClientInfoRequest request)
 {
     await ClientsApiRepository.Get().UpdateClientInfo(request);
 }