Microsoft.Extensions.Http Integration - SOLIDSoftworks/Solid.Http GitHub Wiki
We've integrated with Microsoft.Extensions.Http package. If it's installed in the service collection, the it is used to create HttpClients. Using HttpClientFactory from Microsoft.Extensions.Http is just a good idea.
Initialization
To use Microsoft.Extensions.Http with Solid.Http, you just need to add the package.
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services
.AddHttpClient()
.AddSolidHttpCore();
}
}
If you choose not to
That's fine too. You don't have to use HttpClientFactory if you don't want to. We've implemented a naive implementation of IHttpClientFactory so that you won't have to.