Basically in my Global.asax code I have the following IKernel property for Ninject setup like this (Also taking advantage of Microsoft.Practices.ServiceLocation).This Container is automatically called
I have a ViewModel, it takes two parameters in the constructor that are of the same type: public class CustomerComparerViewModel
I want to share the container across various layers in my application. I started creating a static class which initialises the container and register types in the container.
I got some static classes with extension methods which add \'business logic\' to entities using the repository pattern.
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 membe
I\'m new to Ninject, and I was wondering if the scope of the kernel should be 1 per application. So should I 开发者_C百科treat the kernel as a singleton?
How do I handle classes with static methods with Ninject? That is, in C# one can not have static methods in an interface, and Ninject works on the basis of using interfaces?
I was wondering how I could bind the IPrincipal to HttpContext.Current.User in Asp.net Mvc with Ninject.
In my previous project we used NHibernate and Spring.NET. Transactions were handled by add开发者_开发技巧ing [Transaction] attribute to service methods.
If I am working on a class library how do I make use of Ninject here? i.e., from the internal class library point of view and also from the cl开发者_StackOverflow中文版ient code?