I use ninject and ninject factory extension as follows: I created two interfaces, the first interface is for the factory and the second is for the co ...
I use ninject and ninject factory extension as follows: I created two interfaces, the first interface is for the factory and the second is for the co ...
I am currently migrating from .net4.6 which uses NInject modules. My target is to use .net6 core and its native DI. While doing so I came across a sta ...
My interface and classes The controller I want to call the methods of CompanyNoteService in the controller, using dependency injection. I regist ...
The client which I am calling looks like this In NInjectWebCommon.cs file I am resolving like this. This is not working as the constructor is ex ...
I'm currently working at a discord bot and the CommandHandler needs an IServiceProvider for the Dependency Injection but I do use Ninject does anyone ...
I updated my application from .NET Framework 4.6.1 to 4.8 but I have an error loading the application. For context: This application uses the Ninject ...
As per following example: MediatR.Examples.Ninject I've a MediatorModule class as follows: On a Quick Watch over services.FromThisAssembly().Sele ...
In a .NET Core 3.1 console application I want a Class that would have some parameters in constructor injected but some that I could assign manually. F ...
I'm working on integrating an accounting system which objects are COM objects. When binding one to one as follows, it works just fine. The situati ...
I'm struggling to build an App using WPF and MVVM pattern. In this App I have three buttons in the MainView - Camera, Boiler, Temperature Sensor. When ...
When I call IKernel.Dispose() in the [TestCleanup] method of my DataTest, my application is crashing because the first object to be disposed is still ...
I am learning Ninject for dependency injection and have a use case where two classes implement the same interface in a WPF MVVM applicaiton. In my res ...
I am creating Unit Tests for existing .NET Framework 4.5 API project. The existing project has parameterless constructor by design and dependency inje ...
It is possible to register NodaTime.SystemClock like this: builder.Register(_ => SystemClock.Instance).As<IClock>().SingleInstance();, accord ...
I am using Ninject for Dependency Injection. I have to call two identical classes in the constructor. public EsyonluAntennaManager( IModbusActuat ...
I have interface (e.g. IMyInterface). I need to get of which type object will be created if I call kernel.Get<IMyInterface>(). Not the instance ...
Background We have a Web API 2 project that we are making into our "public api". On requests to our api, we are using a custom attribute (ApiKeyAutho ...
there are 2 classes in wpf app First class Second class Configuration on start stackoverflow exception appears, how to resolve? ...
So I currently have a straightforward service like so: And it's binded like so and works as expected. I'm trying to introduce another service wh ...
Today I updated our Ninject dependency from 3.3.4 to 4.0.0-beta-0134, but now it throws a circular dependency exception in decorator pattern: `Unhand ...