Currently I have many spring boot services annotated with @Service. Every service works fine and there are no problems. There is a problem only with LogsService
I get an object from NestFactory and then I call a function. There is another class injected inside service class. All the dependencies inside the service are n
I have a SwiftUI app, its a tab based app struct Tab_View: View { var body: some View { TabView{ Main1_View().tabItem {
Kotlin allows for the definition of singleton objects. In dependency injection (DI) frameworks like Spring or CDI, the life cycle of beans can be defined as sin
i'm using flutter bloc. i want to emit the data from a repo to a state. how do i get the data from the repo to show in the cubit? This is my cubit: void getPro
I've been spinning my wheels for hours on the simple question of how to inject http.Client into a flutter class when using injectable. They reference doing this
I've created a .Net 6 console app. I added user secrets, but I only get the values defined in the appsettings.json file. I use Visual Studio Professional 2022 v
I have an interface IProcessor and multiple processors implementing this interface: Processor1 : IProcessor Processor2 : IProcessor I want to inject these proc
I have an error concerning Hilt, I"ve been trying to inject a retrofit interface I created using Hilt, Here is the error: java.lang.ClassNotFoundException: Di
I have a view model. I am using Hilt. I can create this view model from activity, like this val model: ProfileViewModel by viewModels() However when I try to c
I am trying to inject some Data into the Startup.cs file without success. For example, this injection works fine on my Email Class and I am able to read the _d
I have some trouble with dependency injection. Assume we have the following code: [Snippet 1] public class FooBar { public FooBar (){} public void DoSome
What's the difference between Subcomponents and Dependent-Components with specific scope in action? What's pros or cons of every one? My Story: Recently I deci
I have this line of code in my test solution . I want to config ravenoption in my test code. public IHost host = null; public IDocumentStore documentStore = nul
Suppose that I have a class A class A () I want to inject an instance of A as a field into class B and let Hilt or Dagger to handle it. Class B { @Inject la
Bit of a newbie question. I am having trouble getting access to dependency injected services from within my own custom class in ASP.NET Core 3.1 I can access se
AutoRest generated client don't have suitable constructor for use it with services.AddHttpClient() method. So how can we get around this? Now we have public co
I need to use Dependency Injection in a static class. the method in the static class needs the value of an injected dependency. The following code sample demo
I have dual boot with Angular 13 and Angular 1. The app is built with webpack v5. The tsconfig has key "emitDecoratorMetadata":true. After install I run NGCC on
Why I should use AddScoped() for my repositories or services? Why not AddSingleton()? I know about differences between them, but dont understand why I shouldn't