002. HTTP Network Request Routing Configuration

002. HTTP Network Request Routing Configuration

A standard network interface uses a single-node route for a controller, but multiple methods can be provided through hot reloading. Generally, a controller uses four types of request routes: Create, Read, Update, and Delete (CRUD).1. Get: This method requests data from the server, allowing only data retrieval without writing to the server.2. Post: This method … Read more

HttpClient Based on Keyed Dependency Injection

HttpClient Based on Keyed Dependency Injection

HttpClient Based on Keyed Dependency Injection Intro In .NET 8, dependency injection introduced support for keyed services, which can be referenced in .NET 8’s KeyedService. In .NET 9, improvements were made to HttpClient’s name-based dependency injection, allowing the use of keyed services for resolution when using name-based HttpClient. Sample We can register a keyed service … Read more