.NET Client for the FanArt.TV API integrated with IHttpClientFactory
best practices and IServiceCollection
.
The best way of using the client is adding the dependencies to the ServiceCollection
and resolving IFanArtTVClient
where you'd like to use it:
services.AddFanArtTVClient(options =>
{
options.ApiKey = "Set here your API-KEY for FanArtTV";
});
The client comes automatically configured with an exponential Retry Policy and uses the IHttpClientFactory
best practices.