Exemple #1
0
 public Task <IEnumerable <ProductResult> > GetAll()
 {
     try
     {
         return(retryPolicy.ExecuteAsync(async() => await client.GetAll()));
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
Exemple #2
0
 public async Task <IEnumerable <ProductResult> > GetAll()
 {
     try
     {
         return(await productClient.GetAll());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }