Kenny Tordeur

Random thoughts about Asp.Net MVC

  • Home
Kenny Tordeur-Banner

Tag: mef

Dec12 0

Asp.net MVC MEF: Per Request Lifetime

Posted by Kenny Tordeur

Like the title says, i want to use MEF in an Asp.Net MVC application and the lifetime of the object has to be exactly the same as the lifetime of the request. In short, i want 1 single unique object that is recreated per request. In MEF there is a way to control the lifetime […]

Read More →
ASP.NET MVC dependency injection, mef
Aug31 1

Using MEF in Asp.Net MVC 4 and WebApi

Posted by Kenny Tordeur

MEF stands for “Microsoft Extensibility Framework”. If you want an overview of MEF, you can look here. In this post we will integrated MEF with Asp.Net MVC 4 and with the WebApi. Asp.Net MVC 4 First of all you need to reference the “System.ComponentModel.Composition.dll” assembly which contains the implementation of MEF. Now where are going […]

Read More →
ASP.NET MVC dependency injection, mef, webapi

Recent Posts

  • Session state in Asp.net Core
  • Localization of an Asp.net mvc Core application
  • Cache and cache profiles
  • Cache tag helper in MVC 6
  • How to organize your Asp.net mvc controller

Archives

  • August 2016
  • June 2016
  • May 2016
  • December 2015
  • November 2015
  • October 2015
  • May 2015
  • April 2015
  • March 2015
  • July 2014
  • January 2014
  • January 2013
  • December 2012
  • August 2012

Categories

  • ASP.NET (1)
  • ASP.NET MVC (14)
  • C# (1)
  • Javascript (1)

Archives

  • August 2016
  • June 2016
  • May 2016
  • December 2015
  • November 2015
  • October 2015
  • May 2015
  • April 2015
  • March 2015
  • July 2014
  • January 2014
  • January 2013
  • December 2012
  • August 2012

Meta

  • Log in
© 2014 ascent. All rights reserved | Ascent by NetTantra