Ejemplo n.º 1
0
 /// <summary>
 /// Deletes the specified plugin's information from the registry.
 /// </summary>
 /// <param name="information">The plugin to delete.</param>
 public void DeletePlugin(PluginInformation information)
 {
     lock (Locker)
     {
         if (information.Enabled)
         {
             UnloadPlugin(information.AssemblyName);
         }
         KnownPlugins.Remove(information.AssemblyName);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Attempts to load a plugin into memory from the specified info.
 /// </summary>
 /// <param name="info">The plugin to load.</param>
 /// <returns>The loaded plugin.</returns>
 public IMSPluginBase LoadPlugin(PluginInformation info)
 {
     return(LoadPlugin(info.FileName));
 }