Exemple #1
0
 internal static void UpdateInstalledModules()
 {
     foreach (Module m in ModuleAddIns)
     {
         if (!m.Installed && m.IsAuthenticated())
         {
             m.Installed = true;
             Assembly a = m.GetType().Assembly;
             if (a == null)
             {
                 continue;
             }
             Type[] types = a.GetExportedTypes();
             foreach (Type t in types)
             {
                 ScriptBinder.ScanTypeForScriptElements(t);
                 Shell.ScanTypeForShellDeserializers(t);
             }
         }
     }
     Scripts.UpdateScriptCache();
 }