How to use Ninject to inject dependencies into ASP.NET MVC ActionFilte(codeclimber.net.nz)

submitted by keyvankeyvan(4086) 3 years, 3 months ago

Simone shows us how to use Ninjet to inject dependencies to ASP.NET MVC.

2 comments |category: |Views: 196

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by simonechsimonech(10.1k) 3 years, 3 months ago 0

Actually the post is about injecting dependencies inside ActionFilters, not just Controllers, which is a topic I covered in a previous post.
Injecting insice ActionFilters is not something that comes out of the box. The post explains how to write the custom ActionInvoker to do it.

Reply

posted by CVertexCVertex(325) 3 years, 3 months ago 0

Sweet, this is the right way to inject!

Reply

information Login or create an account to comment on this story