Lightweight Composition initialization in ASP.NET

May 16, 2012 at 2:03 PM

I'm looking through the sources with Reflector, to find exactly how the Composition Provider gets initialized.

Can anyone explain to me where this 'magic' happens? I can't seem to find any trace of it.

May 16, 2012 at 4:09 PM

Hi – we use PreApplicationStartMethod; see:

http://mef.codeplex.com/SourceControl/changeset/view/8b3d8438c870#oob%2fsrc%2fSystem.ComponentModel.Composition.Web.Mvc%2fProperties%2fAssemblyInfo.cs

Cheers,
Nick

From: GuidoSmeets [email removed]
Sent: Wednesday, May 16, 2012 7:04 AM
To: Nicholas Blumhardt
Subject: Lightweight Composition initialization in ASP.NET [MEF:356001]

From: GuidoSmeets

I'm looking through the sources with Reflector, to find exactly how the Composition Provider gets initialized.

Can anyone explain to me where this 'magic' happens? I can't seem to find any trace of it.