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