I\'m just learning Ninject and how to implement it in MVC situation. I\'m trying to find out what the best way/practice is to setup the following scenario.
So I\'ve been playing around with the latest release of the WCF Web API and decided I wanted to dive into implementing Ninject with it.
I am building an application using Ninject and ASP.NET MVC 3. Is it possible with Ninject to supply a generic binding within a module like this:
How can I create a binding for a globally scoped singleton object whose instance expires after a certain amount of time? Once the object has expired I\'d like Ninject to serve up a new instance until
I\'ve created an empty Asp.Net MVC3 project, and used nuget install-package Ninject.MVC3 Without doing anything else (no services registered and not even a controller created) I run the application.
Using Ninject 2.2 with ASP.NET MVC 3. I have a controller and some classes located in an external assembly which are registered by loading a NinjectModule from said assembly.
I\'ve used Ninject with MVC3 for automagic inject of constructor arguments.It worked great. How do you do something similar with non-MVC code.
i am creating custom membership provider using ninject for binding to sql classes. my class in looks like
This code was generated for me after added entity framework code-first for SQL Server CE using NuGet. They did no changes to any other file. The file SQLCEEntityFramework.cs was created and placed in
I figured it\'d be easier to ask here, where I can post some code, than in the comments of his solution.To see his solution, go here.