301
CHAPTER 7 | Implement resilient applications
Note
The implementation of
IHttpClientFactory
(
DefaultHttpClientFactory
)
is tightly tied to the DI
implementation in the
Microsoft.Extensions.DependencyInjection
NuGet package. If you need to
use
HttpClient
without DI or with other DI implementations, consider using a
static
or singleton
HttpClient
with
PooledConnectionLifetime
set up. For more information, see
HttpClient guidelines
for .NET
.
Dostları ilə paylaş: