問題タブ [refit]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - Xamarin Forms Fusillade Refit - 単一の HttpClient インスタンスの使用
この投稿で Xamgirl によって概説されている方法論を実装しました。
https://xamgirl.com/using-restful-web-service-xamarin-forms-using-refit-part-3/
コードを見ると、彼女は MakeUpApi と RedditApi のために 2 つの ApiServices をインスタンス化しているため、2 つの HttpClient インスタンスをインスタンス化しています。
HttpClient は単一のインスタンスとして使用するように設計されているため、リクエストごとに Fusillade の優先度が異なる可能性があることを念頭に置いて、これを行う方法を誰かが知っているかどうか疑問に思っています。
前もって感謝します