This repo contains samples on how to use Dependency Inversion & Dependency Injection in various languages.
| Language | Framework |
|---|---|
| C# | Microsoft.Extensions.DependencyInjection |
| C++ | [Boost::ext].DI |
| Python | Kink |
| Java | SpringBoot |
| Typescript | Tsyringe |
All samples use Singleton and Transient dependencies. Executing the samples should show something like the following in the console output:
ComponentAService (SingletonState) 50
ComponentAService (TransientState) 44
ComponentBService (SingletonState) 50
ComponentBService (TransientState) 23