The HttpClientFactory manages scope and lifetime of HTTPClient instances in your application. It also works with the DI Container for managing custom classes that encapsulate the HTTPClient instances.
- [Instructor] The IHttpClientFactory…provides a central location…for configuration and naming of HttpClient instances.…It manages the lifetime and disposal of HttpClient instances…and it supports registration and chaining of handlers.…It also provides support for Polly-based handlers…and generated clients…and it adds logging via the standard…ASP.NET Core ILogger interface.…
The IHttpClientFactory manages the pooling…and lifetime of HttpMessageHandlers…which reduces resource consumption…when using the HttpClient.…It sets a default timeout to two minutes…and it handles disposing of HttpClient instances…and all of their owned resources.…There are four basic consumption patterns,…the basic usage, named clients, typed clients,…and generated clients,…and we will examine all of these in the code samples.…
The basic usage is helpful…when you don't want to refactor an existing code base.…It starts off by adding services.AddHttpClient…into the ConfigureServices…and then you're consuming code,…takes an instance of the IHttpClientFactory…
- Running and debugging ASP.NET Core applications
- Pros and cons of migrating existing applications to ASP.NET Core.
- Built-in dependency injection
- Environment awareness and app configuration
- Web host configuration and SSL
- View components invoked as tag helpers
- Configuration and logging
- Using Razor Pages
- Web API improvements
- Support for creating GDPR-compliant applications
Skill Level Intermediate
Entity Framework Core Essential Training: 1with Phil Japikse3h 20m Intermediate
Use the exercise files3m 37s
1. Get to Know .NET Core
2. ASP.NET Core 1.0
3. ASP.NET Core 1.1
4. ASP.NET Core 2.0
5. ASP.NET Core 2.1
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.