How would I implement the following code in the Cocktail bootstrapper? The code is from a Caliburn.Micro bootstrapper which loads the assembly files from a subdirectory into the container.
protected override IEnumerable<System.Reflection.Assembly> SelectAssemblies()
{
var assemblies = base.SelectAssemblies();
var directory = new DirectoryInfo(@"Modules");
var files = directory.GetFiles("*.dll", SearchOption.TopDirectoryOnly);
//only load the the dlls that are from this namespace
var modules = files.Where(f => f.Name.Contains("CaliburnProto"))
.Select(f =>
Assembly.LoadFile(f.FullName));
return assemblies.Concat(modules);
}