ninject-2
Dependency Injection with Ninject 2.0 for C# ASP.NET (NOT MVC)
I have been searching for a while. I\'m not new to dependency injection and have used StructureMap with several projects MVC and the like, but I felt like giving Ninject a go, so as not to miss out o[详细]
2023-01-09 07:24 分类:问答Ninject how to access kernel to create instances?
I am new to ninject using ninject 2.0. My application is hosted in asp.net mvc. Now i don\'t know how to access kernel created in my class library.[详细]
2023-01-07 03:58 分类:问答Ninject Intercept
from what dll can i get the extension of Intercept ? I\'ve added Ninject.Extensions.Interception from http://github.com/danielmarbach/ninject.extensions.interception[详细]
2023-01-05 09:13 分类:问答Avoiding circular dependencies in XNA using Ninject 2.0
I have been using Ninj开发者_如何学Pythonect as the IOC for an XNA project, and was wanting to migrate it to Ninject 2.0. However, XNA is not dependency injection friendly, as certain classes must be[详细]
2023-01-05 00:46 分类:问答Mocking a datacontext for an object that has a dependency
I\'m writing some unit tests in my project and I have a datacontext dependency on the controller containing the methods I\'d like to test.[详细]
2023-01-01 22:32 分类:问答What is the best way to reset Ninject's IKernel container in an MVC app?
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[详细]
2022-12-31 23:06 分类:问答Ninject: Shared DI/IoC container
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.[详细]
2022-12-31 07:40 分类:问答How to inject ninject itself into a static class with extension functions
I got some static classes with extension methods which add \'business logic\' to entities using the repository pattern.[详细]
2022-12-30 00:54 分类:问答Dependency Injection with Custom Membership Provider
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[详细]
2022-12-28 16:49 分类:问答Ninject Kernel Scope
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?[详细]
2022-12-28 11:57 分类:问答
加载中,请稍侯......