public void Process(Type type, StructureMap.Configuration.DSL.Registry registry) { if (type.GetInterfaces().Contains(typeof(IModule))) registry.AddType(typeof(IModule), type); }