ninject
NInject: Send parameter to ViewModel Class Constructor
I am developing a Windows Phone 7 app and am using the MVVM pattern. I have a need to pass a parameter to the contructor of the ViewModel for a page. All my datac开发者_如何学JAVAontexts and binding a[详细]
2023-03-22 06:25 分类:问答Dependency Injection: How to configure interface bindings for wrapping
So, let\'s say I have an interface IThingFactory: public interface IThingFactory { Thing GetThing(int thingId);[详细]
2023-03-22 00:11 分类:问答NInject WCF extension not working with ninject 2.3
I was using NInject WCF extension 2.2 in my application, but after upgrading the Ninject version to 2.3, it stops working and return some serialization error. Is there any upgraded version of WCF exte[详细]
2023-03-22 00:04 分类:问答Using database transactions in ASP.NET MVC3 with Ninject DI
I\'m starting a new project and want to do things better than I\'ve done before. I used Windsor for DI but it didn\'t go great. I\'ve been eyeing up using the NuGet Ninject MVC 3 package to take care[详细]
2023-03-21 22:27 分类:问答Using Ninject to fill Log4Net Dependency
I use Ninject as a DI Container in my application.In order to loosely couple to my logging library, I use an interface like this:[详细]
2023-03-21 21:56 分类:问答Injecting dependencies into an MVVMLight ViewModelLocator
I have a ViewModelLocator from MVVMLight containing my MainViewModel. I have another singleton class ResourceLogger which does something else.[详细]
2023-03-21 10:09 分类:问答Stuck Working Through Steven Sanderson's "ASP.NET MVC 2..."
I received a brief introduction to ASP.NET MVC in school and I am trying to expand that knowledge base with Steven Sanderson\'s book Pro ASP.NET MVC 2 Framework.It\'s been a great help, but I have hit[详细]
2023-03-21 03:04 分类:问答No parameterless constructor for the PhoneApplicationPage
I have a Windows Phone app with Ninj开发者_高级运维ect IOC. At some point I realized that my MainPage.xaml.cs (initial page of the application that gets initialized first) need to have a constructor[详细]
2023-03-21 00:55 分类:问答How can I use Ninject WCF extension with a singleton service?
I\'m using Ninject 2.2.1.4 and Ninject.Extensions.Wcf 2.2.0.4. My service is decorated with the following attribute:[详细]
2023-03-21 00:41 分类:问答Asp.net MVC 3 not working with Ninject after upgrade from MVC 2?
I have a web application which was using Asp.net MVC2. I Upgraded it to MVC 3 and now I found that OutputCache feature is not working any-more. I created a simple Test action as shown below.[详细]
2023-03-20 18:02 分类:问答