.NET MAUI - HttpClient 를 이용한 Rest Api 호출
MAUI 로 작업을 하다보면 UI 관련 로직은 MAUI로 작성하게 되지만 Business 관련 로직은 MAUI 에서 처리 하기 보다 외부에 노출된 API 서비스를 이용하게 된다. 그래서 이번 시간에 .NET MAUI 에서 외부 API 를 호출 하는 방법에 대해 알아보겠다. RestAPI/MainPage.xaml RestAPI/MainPage.xaml.cs using MauiApp1.InjectableServices; namespace MauiApp1.RestAPI; public partial class MainPage : ContentPage, ITransientService { public MainPage(MainViewModel viewModel) { InitializeComponent(); Bind..
2022.08.31