示例#1
0
 internal AssemblyLoader(Repository forRepository) {
     m_forRepository = forRepository;
     AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(this.AssemblyNotResolvable);
     AppDomain.CurrentDomain.AssemblyLoad += new AssemblyLoadEventHandler(this.AssemblyLoaded);
     Assembly[] alreadyLoaded = AppDomain.CurrentDomain.GetAssemblies();
     for (int i = 0; i < alreadyLoaded.Length; i++) {
         RegisterTypes(alreadyLoaded[i]);
     }
 }