My Current GeneralBindings : Ninject Module public class GeneralBindings : NinjectModule { public override void Load() { ...
My Current GeneralBindings : Ninject Module public class GeneralBindings : NinjectModule { public override void Load() { ...
I have a service called MyRepository, I was to write my own custom provider for MyRepository. How can I pass an argument to the constructor of MyRepos ...
Using ninject, I want to create a provider for MyRepository class which has dependency on ApplicationDbContext: I have seen this document which exp ...
I've read the "Mastering Ninject for Dependency Injection" book, and I made the Telecom exercise where it teaches you to use Custom Instance Providers ...
I have a C# Console application in which i use Ninject. If I run it with the following code, the console says: "A Dog with the name Dogy was created, ...
I have a question about Ninject, but before going directly to the question, I will explain the general scenario. I have a Business interface called I ...
I created a simple program as a PoC for an old SharePoint On-Prem project that uses ASP.NET Webforms. In its pages, I have to use property injection, ...
The title has it all. When I do this: Where is the instance of MyClass stored? Is it stored in a static dictionary somewhere globally? Or is it sto ...
I am working on an ASP.NET MVC application. I have initialized my LoggerFactory in a static class which is called from Global.asax now I want to u ...
I´m having a hard time trying to understand how Ninject´s NamedScope module should work. In my mind, each (defined)scope should be used to contextuali ...
I have a Foo class that derives from IFoo and then an IFooFactory that I setup via the Ninject Factory Extensions method: I then want to make sure ...
I am working in web api with ninject as dependency resolver Scenario: I need to generate a report as pdf which includes report data and the organisa ...
Is there a way to register with Ninject, using conventions, all classes that implement a certain interface, associated with each class' name? Then ...
example of convention extension And each type which I get should be provide complex initiation with this method ...
Hi I am trying to use NLog with an Web Api 2 application that uses Ninject for dependency injection. I have struggled to find any concrete info on ho ...
iam using ninject.web extension in my web application but now i have a problem reolving a dependence in Session_Start method of global.asax this is m ...
I am using Ninject to inject dependencies. I have the following class structure : context contains - HasBilling , HasPayment properties along with ...
I am trying to do contextual binding but not able to bind concrete implementation interface as constructor argument. Ninject version: 3.2.0.0 My stru ...
I have a console app where the user inputs a number, and I generate a feature according to that number. I have used Ninject.Extensions.Factory for tha ...
I have an interface, let's say it's IDrawingTool. I have multiple classes implementing this interface, let's say PencilTool, PenTool, YellowMarkerTool ...