How to Add Generated HttpClient to ASP.NET Core Dependency Injection (Right Way)
This How-To describes how to inject dependency to HttpClient you generated for PetStore API with OpenAPI (Swagger) Connected Service to ASP.NET Core application. 
Tags: openapi, swagger, dependencyinjection, codegeneration