Skip to content
christophersnay.com

christophersnay.com

  • Home
  • Education
  • Experience
  • Projects
  • Code Snippets
  • Error Messages
Posted on June 21, 2019June 21, 2019 by admin

Register generics for Dependency Injection

services.AddTransient(typeof(IExternalApiResponseReader<>),
 typeof(ExternalApiResponseReader<>));
CategoriesCode Snippets Tags.NET Core, C#

Post navigation

Previous PostPrevious Enable CORS in .NET Core Web API
Next PostNext Update all npm/Angular packages

Tags

  • .NET Core
  • Android
  • Android Studio
  • Angular
  • API
  • Arduino
  • ASP.NET
  • Bitbucket
  • C#
  • cmd
  • CORS
  • curl
  • Dependency Injection
  • Elasticsearch
  • Entity Framework
  • Error
  • Flask
  • GAC
  • git
  • HTTPS
  • IIS
  • Java
  • Jeep
  • JSON
  • Linq
  • Linux
  • Moq
  • MySQL
  • Node.js
  • npm
  • Pattern
  • pip
  • PowerShell
  • Projects
  • Python
  • Raspberry Pi
  • Raspbian
  • SOLID
  • sqlite
  • SSH
  • Swagger
  • Unity
  • Unreal Engine
  • Website
  • Windows
  • facebook
  • twitter
  • linkedin
  • gmail
Proudly powered by WordPress