Created
December 16, 2010 13:02
-
-
Save GraemeF/743368 to your computer and use it in GitHub Desktop.
MefNancyModuleLocator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Export(typeof (INancyModuleLocator))] | |
public class MefNancyModuleLocator : INancyModuleLocator | |
{ | |
[ImportMany(typeof (NancyModule), AllowRecomposition = true)] | |
private IEnumerable<NancyModule> _modules; | |
public IEnumerable<NancyModule> GetModules() | |
{ | |
return _modules; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment