void CacheAssembly(AssemblyDefinition assembly) { _assemblies[assembly.Name.Name] = assembly; if (assembly != null) { _context.RegisterAssembly(assembly); } }