Exemple #1
0
 public async Task <object> GetGeneratedClients([FromServices] IHelloClient helloClient)
 {
     try
     {
         return(await helloClient.GetMessageAsync());
     }
     catch (ApiException e)
     {
         return(e.Content);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }
 public async Task <ActionResult <Reply> > Index()
 {
     return(await _client.GetMessageAsync());
 }