ninject Questions

2

ASP.NET MVC proposes that use or extend built-in Authorization, Action, Result, Exception filters. 3th party .Net IoC containers (Unity, Ninject, Autofac) propose Interceptors 3th party AOP...
Telmatelo asked 21/2, 2013 at 17:42

1

I try to use the MoqMockingKernel class. (Ninject.MockingKernel.Moq) from the Ninject.MockingKernel Extension for a unit test. At initializing the MoqMockingKernel I'm getting the following error:...
Heretofore asked 8/11, 2012 at 10:7

2

Solved

I was using ninject IoC in my application and in particular the following: kernel.Bind<RepositoryFactories>().To<RepositoryFactories>() .InSingletonScope(); I would like to implemen...
Hoff asked 24/2, 2013 at 7:20

3

Solved

I've found some 2008 benchmark results for testing the performance of several of the top .NET DI/IoC containers here. But I haven't been able to find any updated results. Are there any benchmarks o...
Lollar asked 15/3, 2011 at 17:27

3

Solved

Well, I don't know if "strong naming" is the right term, but what I want to do is as follows. Currently I use ConstructorArgument like e.g. this: public class Ninja { private readonly IWeapon ...
Slur asked 14/4, 2010 at 11:21

1

Solved

I am using ninject in an asp.net web api project and have started receiving this intermittent ninject error: "Error loading Ninject component ICache No such component has been registered in the ke...
Insociable asked 7/2, 2013 at 17:23

1

Solved

Can the Ninject concepts of scope, context, named binding, (and activation block?) be separated and explained clearly at a conceptual level? As an example, I have a service that loads data records...
Neutrality asked 29/1, 2013 at 23:6

1

Solved

I am trying to develop a library using dependency injection approach (with Ninject) and I am having some kind of confusion likely because of my incorrect design. In summary, my design approach is ...

1

Solved

I'm looking for a way to inject my connections into my repositories. I tried to inject the SqlConnection using the IDBConnection, but I got some problems when NInject tries to deactivate the connec...
Steno asked 25/1, 2013 at 13:54

2

I can see that similar questions has been asked previously, but being totally new to DI and .Net I am not able to grasps the entire solution or may not have found the right source.... I have asse...
Hatley asked 25/10, 2012 at 22:3

1

Solved

Introduction: I'm using the Ninject Factory Extension to inject simple object factories into my service classes. Here is my interface and two classes that implement it: public interface ICar { ...
Intermediacy asked 22/1, 2013 at 3:24

2

Continue from this solution : How to configure Ninject for MVC4 & custom Membership provide? I declare public interface IUserRepository : IRepository<UserModel> { MembershipUser CreateU...

1

Solved

I have a project called Infrastructure, which contains an interface IRepository public interface IRepository<T> { /// <summary> /// Adds the specified entity to the respository of ty...
Unguarded asked 14/1, 2013 at 8:46

1

Solved

I have my project which uses the usual Repository pattern with Services and Unit of Work (all with Ninject injecting the dependencies from a NinjectModule), but I'm trying to access a service from ...

3

Solved

I'm trying to test my service using ninject and an unit test project with visual studio 2012. My inject works ok on my controllers, but when I try to do the same in the unit test class I get an Exc...
Eosin asked 8/1, 2013 at 18:48

3

I am using Ninject MVC3(version 3.0.0.0) for my ASP.Net MVC3 application installed using NuGet Package for Dependency Injection. Here is the Global.asax change: public class MvcApplication : Ninj...

1

Solved

I am currently working on a project where we are converting our old DataSet, Stored Procedure WinForm application to use Entity Framework so new websites can access the same object model and reposi...
Scientist asked 2/1, 2013 at 19:14

3

Solved

I am creating a new project in ASP.net using MVC 4. I want to setup dependency injection using Ninject. But before I proceed what are the best practices when setting up dependency injection? Curr...

5

Solved

I have some experience in working by Structuremap. And now I'm creating a big and large scale web app (really a social networking site) using ASP.NET MVC 3, Entity Framework 4.1 code-first, S...
Delila asked 25/10, 2011 at 15:17

3

Solved

Let's say I have the following classes that I want to construct using Ninject, with the arrows showing dependencies. A > B > D A > C > D I want to configure Ninject such that A is tr...
Joviality asked 26/12, 2012 at 17:52

2

Solved

We are using the domain events pattern and leaning on our IoC container to locate handlers for a particular type of event: public interface IHandleEvent<TEvent> where TEvent : IEvent { void...
Sporran asked 18/12, 2012 at 19:48

2

Solved

I am using Ninject together with ASP.NET MVC 4. I am using repositories and want to do constructor injection to pass in the repository to one of the controllers. This is my Repository interface: ...
Airframe asked 15/12, 2012 at 14:57

3

Solved

Have a couple of questions regarding the latest version (2.2.1.4) of ninject. Was trying to Bind a Linq2sql DataContext to a concrete implementation InRequestScope (in a class library project) Bi...
Poll asked 2/8, 2011 at 12:13

4

Solved

I have an ASP.NET MVC web application that implements a custom membership provider. The custom membership provider takes a UserRepository to its constructor that provides an interface between the m...
Abeabeam asked 2/5, 2010 at 12:19

1

This is going to be a long post so please hang with me. One of the production sites that we implemented here at work a few months back I started seeing the dreaded connection leak error message in...
Angelo asked 1/11, 2012 at 18:10

© 2022 - 2024 — McMap. All rights reserved.