Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in dependency-injection

How to use DbContext in a singleton class?

Make sure that the controller has a parameterless public constructor using Ninject

Preferable way of making code testable: Dependency injection vs encapsulation

Is it considered bad design to pass a repository interface as an argument to a method on a domain class?

Combining dependencies and values in the constructor

How to register singleton factory resolving scoped objects in ASP.NET Core?

How can I override a DI container dependency with a specific instance?

Question about FastAPI's dependency injection and its reusability

Where to put Dependency Injection classes in clean architecture

Register a generic interface with a non generic implementation in ASP.NET Core Dependency Injection

what the difference between RegisterInstance and RegisterType in DI Autofac

Is there a way in ASP.NET to get all singletons?

Instantiating and Invoking TagHelpers Manually

Angular InjectionToken; what is 'app.config'?

In MVC, with a controller that has multiple constructors, how can I indicate which constructor to call?

'AddDbContext' was called with configuration, but the context type only declares a parameterless constructor

Autofac error: The instance registration can support SingleInstance() sharing only

netcore dependency injection per user

best way for injecting ViewModels?

NoSuchMethodError: No static method createViewModelLazy