ninject
Using ninject (DI) to instantiate a presenter with webforms and MVP
I\'ve got a webforms app that I\'d like to use dependency injection on. I realize that I can\'t use DI to construct the each Page because webforms doesn\'t have the proper hooks like aspnet MVC does.[详细]
2023-04-06 00:32 分类:问答Can't get DependencyResolver to work with ninject?
I have this code in my bootstap of Ninject : private static IKernel CreateKernel() { var kernel = new StandardKernel();[详细]
2023-04-05 23:19 分类:问答MSTest with Ninject, MVC3 and WCF
I have an ASP.Net MVC3 project that calls a WCF service to get data. The WCF service in turn开发者_如何学Python uses managers and repositories etc. (in other class library projects) to get the require[详细]
2023-04-05 21:34 分类:问答What is the best way to use Ninject with MVC 3 and how?
What is the best way to use Ninject with MVC 3 and how ? It is using a controller factory ? or using NinjectHttpApplic开发者_运维问答ation ?[详细]
2023-04-05 06:21 分类:问答How do I wrap all actionfilters for performance monitoring?
I am moving more and more of my aspect-oriented concerns into ActionFilters on my ASP.NET MVC site.As a result, I suspect some of my performance bottlenecks may have moved into ActionFilters with no v[详细]
2023-04-04 15:10 分类:问答MVC 3 - how to implement a service layer, do I need repositories?
I am currently building my first MVC 3 application, using EF Code First, SQL CE and Ninject. I have read a lot about using Repositories, Unit of Work and Service Layers. I think I have got the basics[详细]
2023-04-04 11:38 分类:问答When and where is the best place to instantiate ninject kernel
Been trying to get my head around using ninject in a webforms app. However i\'m still puzzled as where and when to instantiate the ninjet kernel with my \'bindings module\' and whether or not i need t[详细]
2023-04-03 21:22 分类:问答Implementing Repository pattern with PetaPoco
Just started a \'real world\' project using .NET MVC, Ninject, PetaPoco and plan to use the repository pattern.[详细]
2023-04-03 16:07 分类:问答Ninject: More than one matching bindings are available
I have a dependency with parameters constructor. When I call the action more than 1x, it show this error:[详细]
2023-04-02 22:55 分类:问答How to inject more classes in some controller using ninject
I am completely new to dependency injection. I am using asp mvc and ninject. I extended a class from \'DefaultControllerFactory\' and added following \'AddBindings\' code:[详细]
2023-04-02 12:43 分类:问答