Is there a way that I can create my own OptionalAttribute for Ninject? I know I can replace InjectAttribute by using the NinjectSettings class (which I already have done), but there doesn\'t seem to
I have a certain part of my site that checks if the logged on user can access the id of a record (Report id), if so they can view the content on that page. There can be various different types of user
I have an ASP.NET MVC 3 application and am using Ninject for injecting dependencies into my classes. Actions on the Controllers pass ViewModels (that do not contain logic) to the view layer.
I have an MVC application using Ninject to connect to a single database. Now I need to support multiple databases. Currently, my global.asax.cs file has the following definition for ninject:
I installed on my project Ninject.MVC3 via Nuget. I read this article that to inject dependencies in my controll开发者_如何学JAVAers, all you had to do was install Ninject, add my dependencies in Nin
I recently created a WCF service library. I am planning on hosting it in IIS. Since I want to reuse my repository layer I decided to go use Ninject in my WCF service as well (I use it in other project
According to this tutorial, to use Ninject in my Asp.net MVC 3 application , all I have to do is install package via Nuget and configure dependencies.
I don\'t fully understand what\'s happening behind the scenes when we inject dependencies into controllers and models.
One of my MVC attributes has a dependancy on a service which I was hoping to inject via the constructor. Obviously the MVC attribute requires a parameterless constructor too.
I\'m writin开发者_StackOverflow中文版g a custom ErrorHandler attribute for my MVC project. I would like to inject an implementation of EventViewerLogger into that attribute.