ninject Questions

1

Solved

I just upgraded the ASP.NET Identity Entity Framework package from 1.0 to 2.0 and one of the Ninject bindings is now broken: kernel.Bind<IUserStore<User>>().To<UserStore<User>...
Bruxelles asked 1/4, 2014 at 0:43

1

Solved

I'm using Ninject to handle my dependencies. My ApplicationPresenter is responsible to dispatch the user calls to features throughout the application, hence the need to inject multiple fact...
Hammertoe asked 31/3, 2014 at 4:39

3

I have an existing MVC application that is using Dependency Injection with Ninject. I installed the Ninject.MVC3 nuget package and it creates a class called NinjectWebCommon in my App_Start, which ...
Merari asked 22/1, 2014 at 14:41

1

Solved

I'm trying to bind IAuthenticationManager with Ninject so it can be injected into my AuthenticationService. The problem is that I currently get the IAuthenticationManager from HttpContext.GetOwinCo...
Danuloff asked 23/3, 2014 at 2:56

2

Solved

What are the differences between these two life cycles? Let's say my MVC controller is being supplied with an object that was configured as transient, then when someone visits a method in that con...
Terpineol asked 22/3, 2014 at 7:42

1

Solved

I have successfully configured DI for my WCF services using Ninject. Each service class has a constructor into which Ninject injects instances at runtime. public class MessageService : ServiceBas...
Rigby asked 3/11, 2013 at 23:5

1

Solved

So I have the exact opposite problem as MVC5, Web API 2 and Ninject I have a new MVC5/WebAPI2 project, that has both "Controller"s and "ApiControllers". I'm using the latest unstable version of N...

1

Solved

I use Ninject mainly as manual binding like bellow. Which is working properly kernel.Bind<TestContext>().ToSelf().InRequestScope(); kernel.Bind<ITestRepository>().To<TestRepository&...

2

Solved

I have a static class and I need to inject some instances into it. A static class can have a static constructor but it must be parameterless. So, how am I supposed to inject something into it? I d...
Bede asked 31/5, 2013 at 23:46

2

Solved

In a simple mvc 4 app I installed Ninject.MVC3 nuget package. This is my controller, very basic, ISomeClass is being injected in the constructor by ninject. public class HomeController : Controll...
Reproachful asked 21/2, 2014 at 8:52

5

Solved

With Ninject, how do you configure the kernel so I can define what constructor values are passing into the instantiation of an object? I have the following configured in a module: Bind<IServic...
Ivetteivetts asked 19/5, 2011 at 22:18

2

Solved

I am using Ninjec, Ninject.Web.MVC and Ninject.Web.Common When I start my mvc application I get this binding error: What do I wrong in my binding? Error activating DbConnection No matching ...
Tore asked 12/2, 2013 at 19:46

2

Solved

I have a class (MyFacade) that I injected parameter(s) with Ninject: class MyFacade { IDemoInterface demo; public MyFacade(IDemoInterface demo) { this.demo = demo; } public void MyMethod()...
Ludewig asked 11/2, 2014 at 15:46

1

Solved

I have this error when clicking a link on a site I'm creating Error activating IEntityCache using binding from IEntityCache to EntityCache No constructor was available to create an instance of the...
Selfconfidence asked 9/2, 2014 at 22:20

4

Solved

I have an MVC2 app that's based on the Tekpub Starter Site, so it uses Ninject for dependency injection, NLog for logging, and a bunch of other libraries in various places. As far as I can tell tho...

2

Solved

I've got a simple MVC4 site which uses ASP.NET webAPI and also MVC pages. I'd like to use Ninject DI for both controller types but I'm wondering how this can be done? I've got Ninject DI working ...

1

Solved

I've just started programming in .NET and I'm having some problems with implementing dependency injection (using Ninject). I'm creating some sort of catering application where user can browse town...
Disobey asked 3/2, 2014 at 10:27

3

Solved

I have a custom authorization class that inherits from FilterAttribute and implements IAuthorizationFilter. I am using the latest version of Ninject w/ asp.net MVC 3 support. The problem I have i...
Daze asked 6/4, 2011 at 19:59

1

Solved

On the following page: http://www.asp.net/signalr/overview/signalr-20/extensibility/dependency-injection Near the bottom (just below the text "RegisterHubs.Start") there is a piece of Ninject code...
Reconnoitre asked 11/12, 2013 at 1:52

1

Solved

Abstract When the design requires an "Abstract Factory Pattern" like stated by the [GoF] including several products and over some product families, then setting up an IoC can become a bit tricky. ...

1

Solved

I am following this article to create a pluggable MVC application. Once ninject has been installed, it says to add this: var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin"); ker...
Paddy asked 1/1, 2014 at 20:15

1

Solved

I'm familiar with MVC but I'm trying to learn WPF with Ninject. Can some one give me some example or reference?
Tiltyard asked 16/12, 2013 at 15:54

3

Solved

I would like to be able to use ninject to inject all instances of a particular generic type into a class. For example I have a bunch of custom extractors of a format similar to: public interface ...
Asthenia asked 7/6, 2012 at 20:25

2

Solved

I have a console app that uses kernel.Get<SomeClass>(); However, SomeClass has a dependency on SomeDisposableClass. How can I set up my binding to dispose of SomeDisposableClass when SomeClas...
Hydropic asked 12/12, 2013 at 16:26

1

Solved

I have a MVC 5 project using ASP.NET Identity (Invidual user account). As Database ORM I am using Entity framework 6 and IoC is taken care by Ninject. Solution structure is following MVC project...
Impetuosity asked 6/12, 2013 at 9:3

© 2022 - 2024 — McMap. All rights reserved.