EasyAF_Http_IServiceCollectionExtensions
Provides extension methods for registering EasyAF HTTP clients in the dependency injection container. Automatically configures HttpClient instances based on configuration attributes.Syntax
Inheritance
Methods
AddHttpClients<TConfig, TMessageHandler>
Parameters
- services IServiceCollection: The service collection to add HTTP clients to.
- config
TConfig: The configuration instance containing endpoint definitions. - httpHandlerMode HttpHandlerMode: Specifies how message handlers should be configured for the HTTP clients.
Returns
IServiceCollection The service collection for method chaining.AddHttpClients<TConfig, TMessageHandler>
Parameters
- services IServiceCollection: The service collection to add HTTP clients to.
- config
TConfig: The configuration instance containing endpoint definitions.