示例#1
0
 public async Task <OrderDTO> GetOrderById(int id)
 {
     return(await Task.Factory.StartNew(() =>
     {
         return client.GetOrderById(id);
     }).ConfigureAwait(false));
 }