Skip to content

Latest commit

 

History

History

README.md

SimpleS3.Extensions.HttpClientFactory

This extension provides more advanced HTTP capabilities than the SimpleS3.Extensions.HttpClient network driver. It is based on the HttpClientFactory class provided in the Microsoft.Extensions.Http nuget package. It is the default HTTP driver in SimpleS3, so you don't have to do anything if you are using the Genbox.SimpleS3 package.

However, if you want to build your own SimpleS3 setup, add a reference to Genbox.SimpleS3.Core and Genbox.SimpleS3.Extensions.HttpClientFactory.

Using Microsoft.Extensions.DependencyInjection

If you are using Microsoft's dependency injection (recommended), then you simply add the driver like this:

ServiceCollection services = new ServiceCollection();
ICoreBuilder coreBuilder = SimpleS3CoreServices.AddSimpleS3Core(services);
coreBuilder.UseHttpClientFactory();