Having Fun with Microsoft IoC Container for .NET Core
A hands-on tutorial on configuring and using Microsoft's default Dependency Injection container in a .NET Core console application.
A hands-on tutorial on configuring and using Microsoft's default Dependency Injection container in a .NET Core console application.
A guide to implementing dependency injection using StructureMap in legacy ASP.NET MVC applications, covering controllers and non-DI components.
Explains the .NET Generic Host model for configuring and launching ASP.NET Core web apps and Worker Services with standardized setup.
Explores the challenges of testing date/time functions in Python and introduces dependency injection as a solution to mock time for reliable unit tests.
Explains how to fix circular dependencies in .NET Core by using lazy service resolution with IServiceProvider.
A guide on integrating OpenIddict 3.0 into an OWIN/Katana application, covering dependency injection setup for ASP.NET 4.x.
The article discusses dependency injection in Angular, a core concept for building modular and testable applications.
Explains the purpose and usage of the OwningComponentBase class in Blazor for managing service provider scopes and component lifetimes.
Clarifies misconceptions about dependency injection, explaining what it is not: service location, shared dependencies, or auto-wiring.
A tutorial on using Dependency Injection to mock network services in iOS View Controllers for better testability and separation of concerns.
Explores the trade-offs between global and scoped dependency access in Flutter, focusing on testability and using Provider for state management.
Explores Effective Java items 3-5 on controlling object instantiation, covering utility classes, singletons, and dependency injection.
Explains and demonstrates the behavior of Singleton, Scoped, and Transient service lifetimes in client-side and server-side Blazor applications.
Explains how to register a service both as an interface and as its concrete type in ASP.NET Core's built-in dependency injection container.
A tutorial on adding a 'Create Post' feature with Markdown support to a Blazor-based blogging application, covering backend service and API setup.
A Laravel developer critiques the service locator pattern, explaining its drawbacks like runtime errors and increased cognitive load in software design.
A guide to implementing asynchronous initialization in ASP.NET Core using custom middleware, addressing scoped service limitations.
A tutorial explaining the Dependency Injection design pattern in Swift, covering its basics, variations, and implementation for writing loosely coupled code.
A beginner-friendly explanation of dependency injection using a car analogy, contrasting it with inheritance and promoting composition.
A guide to testing code that uses randomness or time by using dependency injection to make tests deterministic.