DryIoc and IServiceProvider on Prism for Xamarin.Forms (DryIoc.Microsoft.DependencyInjection)
问题 I've got a Prism application with DryIoc as container. I'd like IHttpClientFactory to provide HttpClient s to my typed clients , which are like this: public class ExampleService : IExampleService { private readonly HttpClient _httpClient; public RepoService(HttpClient client) { _httpClient = client; } public async Task<IEnumerable<string>> GetExamplesAsync() { // Code deleted for brevity. } } In App.xaml.cs I register my typed client so they can be injected in viewmodels with the following: