ninject
In asp.net-mvc, is there a more elegant way using IOC to inject mutiple repositories into a controller?
I have an asp.net-mvc website and i am using ninject for IOC and nhibernate for my ORM mapping Here is my IOC binding code:[详细]
2023-04-02 08:18 分类:问答Binding Generic Repository and Specific Repository with Ninject 2.2
I have a IRepository that I have implemented in Repository and I extended Repository for specific type as UsersRepository I need to bind all types using the generic binding for Ninject however when re[详细]
2023-03-31 09:05 分类:问答How to localize View with a localizationService in MVC3
I am developing an application which is using ASP.NET MVC3 for the front end which talks to service layer via interfaces.All of the interfaces/services are injected into the controllers via ninject an[详细]
2023-03-31 08:03 分类:问答few bugs in pro asp.net mvc 3 book from aPress
I\'m reading this book and I no matter what I try I cannot make this example run properly as it uses ninject I have never even heard of before I would appreciate if someone could help me get it runnin[详细]
2023-03-31 05:36 分类:问答How to bind IDictionary property with Ninject?
I have a class: public class MyClass { [Inject] public IDictionary<string, IMyInterface> MyDictionary { get; set; }[详细]
2023-03-30 19:10 分类:问答Can Ninject inject a class and make it reference the target class as a back reference?
I want to inject a presenter into my webform class. While doing so I would like the injected presenter to contain a reference to the view it is being injected into. Inject a class with a reference to[详细]
2023-03-29 23:30 分类:问答NserviceBus start Event
I want to configure Dependency Injection with Ninject in my application, and my project is a Subscriber class library. What is the first event produced b开发者_Python百科y NserviceBus for initialize m[详细]
2023-03-29 14:35 分类:问答Keeping dependency inject component out of main code base
I have a MVC app that uses ninject to inject service dependencies into controllers and it works well.However I also have some domain objects that require these services in their constructors and I wan[详细]
2023-03-29 01:27 分类:问答How to Make Alternative Use of Interfaces for Wcf Contracts
Lets say I have 3 assemblies, Example.Core, Example.Contracts, Example.WcfServices.In my contracts assembly I define an interface and add som开发者_开发百科e operation, e.g. ICalculator, which has ope[详细]
2023-03-28 19:00 分类:问答Ninject WCF Garbage Collection on repositories
I\'m using Ninject 2.2 with the WCF extension.On most of my services the repositories are instantiated/released quickly.However, one of my services performs long-running operations (2-3 min).If I watc[详细]
2023-03-28 13:54 分类:问答