I have a WPF Desktop application using Prism 4, in my bootstrapper i have the following code :
protected override IModuleCatalog CreateModuleCatalog()
{
var filepath = Assembly.GetExecutingAssembly().Location;
var path = Path.GetDirectoryName(filepath);
System.IO.Directory.SetCurrentDirectory(path);
path = Path.Combine(path, "Modules");
var moduleCatalog = new DirectoryModuleCatalog() { ModulePath = path };
return moduleCatalog;
}
the above code is telling prism to load all the .dlls from "[my app root]\Modules" path and check them to see if any class has implemented IModule. What I want to do is to limit the loading process to only DLLs which have been signed with a specific sign key so that prevent any developer to inject it's module in my application. please advice if I'm following the wrong path for such issue.