International Journal on Science and Technology
E-ISSN: 2229-7677
•
Impact Factor: 9.88
A Widely Indexed Open Access Peer Reviewed Multidisciplinary Bi-monthly Scholarly International Journal
Home
Research Paper
Submit Research Paper
Publication Guidelines
Publication Charges
Upload Documents
Track Status / Pay Fees / Download Publication Certi.
Editors & Reviewers
View All
Join as a Reviewer
Get Membership Certificate
Current Issue
Publication Archive
Conference
Publishing Conf. with IJSAT
Upcoming Conference(s) ↓
Conferences Published ↓
ALSDAHW-2025
Contact Us
Plagiarism is checked by the leading plagiarism checker
Call for Paper
Volume 17 Issue 2
April-June 2026
Indexing Partners
An Empirical Study of Dependency Injection Lifetime Effects in C# Applications
| Author(s) | AzraJabeen Mohamed Ali |
|---|---|
| Country | United States |
| Abstract | This empirical study investigates the effects of different Dependency Injection (DI) lifetimes in C# applications, focusing on their impact on performance, resource management, and maintainability. DI lifetimes—such as Transient, Scoped, and Singleton—play a crucial role in the lifecycle of objects and services within a system. While DI frameworks, such as Microsoft.Extensions.DependencyInjection, offer flexibility in managing these lifetimes, the practical consequences of each scope on large-scale C# applications remain underexplored. Through a series of controlled experiments, we analyze key metrics including memory usage, application startup time, response times, and ease of unit testing across varying lifetimes. The study also examines the trade-offs between performance and maintainability, providing insights into best practices for choosing appropriate lifetimes in different architectural contexts. Our findings reveal how improper DI lifetime choices can lead to resource inefficiencies and reduced application scalability, while also highlighting the benefits of well-managed scopes for improving code quality and testability. Ultimately, this research contributes to a deeper understanding of DI lifetime management and offers actionable recommendations for developers to optimize their C# applications' design and performance. |
| Keywords | Dependency Injection, lifetime, Transient, Scoped, Singleton, lifecycle, Service provider, Service Collection |
| Published In | Volume 14, Issue 2, April-June 2023 |
| Published On | 2023-04-05 |
| DOI | https://doi.org/10.5281/zenodo.14613867 |
Share this

CrossRef DOI is assigned to each research paper published in our journal.
IJSAT DOI prefix is
10.71097/IJSAT
Downloads
All research papers published on this website are licensed under Creative Commons Attribution-ShareAlike 4.0 International License, and all rights belong to their respective authors/researchers.