Out of Box

The Out of the box implementation of the DirectoryModuleCatalog provides support for auto-discovery of binaries (users Module attribute to build up the Module list and dependencies). When we tried to use in our Line of Business App, we have noticed that it was blowing up as it was going through every dll in the given directory.

Extension to Prism Implementation

Features:
- Supports inclusion filter(s) by providing your regex search criteria (i.e. using BlueCrestStudio.*\.dll)
- Supports exclusion filter(s) by providing your regex search criteria;

Usage:

Single Inclusion Set

    var catalog = new SmartDirectoryModuleCatalog(".", @"BlueCrest\.PrismExtensions\.Test\..*\.dll");

Multi Inclusion Set

var inclusionSet = new List<string>
	{
		@"BlueCrest\.PrismExtensions\.Test\..*\.dll",
		@"BlueCrest\.PrismExtensions\.Test1\..*\.dll"
	};
var catalog = new SmartDirectoryModuleCatalog(".", inclusionSet);

Inclusion Set + Exclusion Set

var inclusionSet = new List<string> { 	@"BlueCrest\.PrismExtensions\.Test.*\.dll", };
var exclusionSet = new List<string> { 	@"BlueCrest\.PrismExtensions\.Test1\..*\.dll" };

var catalog = new SmartDirectoryModuleCatalog(".", inclusionSet, exclusionSet);



+ see SmartDirectoryModuleCatalogTests in the solution on some examples as well

Last edited Oct 23, 2013 at 9:12 PM by bluecreststudio, version 2