Skip to content

Demo project to showcase the benefit of using DI and the DI lifecycle

Notifications You must be signed in to change notification settings

sooneeatwork/DIDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This will execute the program, showing outputs for scenarios with and without DI, as well as demonstrating different service lifetimes.

Key Takeaways

  • DI allows for easier testing by enabling the use of mock objects.
  • It promotes loose coupling between classes and their dependencies.
  • DI facilitates easier configuration changes and maintenance.
  • Understanding different service lifetimes (Transient, Scoped, Singleton) is crucial for proper DI usage.

Contributing

Contributions to improve the demo or add more features are welcome. Please feel free to submit a pull request.

License

This project is open source and available under the MIT License.

About

Demo project to showcase the benefit of using DI and the DI lifecycle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages