MefContrib/MefContrib — Issue #25: PartCreationScope does not work.
Author: JelleHissink
Created: 2011-10-09 01:30:58+00:00
State: open

I think the scope is case sensitive.
When I add

[ExportMetadata("scope", "Global")]

it works, if however I make it *S*cope it fails.
When I inspect the container after adding

[PartCreationScope(PartCreationScope.Global)]

it shows a scope with a upper-case letter.
MefContrib.Web.Mvc/Filter/HasPartCreationScope.cs line 52 should thus be

var key = "Scope"

Regards,
Jelle