static async void Test() { var myWebApi = new WebApiClient.HttpApiClient().GetHttpApi <MyWebApi>(); await myWebApi.GetAboutAsync("typeValue"); await myWebApi.UpdateUserAsync(new UserInfo { UserName = "******", Password = "******" }); await myWebApi.DeleteUser2Async(id : "id001"); }
static async void Test() { try { var myWebApi = new WebApiClient.HttpApiClient().GetHttpApi <MyWebApi>(); await myWebApi.TestAsync("myAction", new[] { 1, 2 }, null); await myWebApi.GetAboutAsync("typeValue"); await myWebApi.UpdateUserAsync(new UserInfo { UserName = "******", Password = "******" }); await myWebApi.DeleteUser2Async(id : "id001"); } catch (Exception ex) { Console.WriteLine(ex); } }