void ddosPluginPlugin__fireFinished(string sPluginTaskKeyID) { if (htPluginPlugins.ContainsKey(sPluginTaskKeyID) == true) { DDoSPluginPlugin ddosPluginPlugin = (DDoSPluginPlugin)htPluginPlugins[sPluginTaskKeyID]; RemoveWatchPluginPlugin(sPluginTaskKeyID); ddosPluginPlugin.Shutdown(); } }
public void DDoSEngine__fireNewDDoSPluginPlugin(DDoSPluginPlugin plugin) { // // Start DDoS Plugin or Shutdown // if (htPlugins.ContainsKey(plugin.sPluginTaskKeyID) == false) { htPlugins.Add(plugin.sPluginTaskKeyID, plugin); plugin._fireFinished += plugin__fireFinished; plugin.Start(); } else { plugin.Shutdown(); } }
void plugin__fireFinished(string sPluginTaskKeyID) { // // Clean up plugin Resources // if (htPlugins.ContainsKey(sPluginTaskKeyID)) { DDoSPluginPlugin plugin = (DDoSPluginPlugin)htPlugins[sPluginTaskKeyID]; // Remove before shutdown incase we are on the thread about to be aborted. htPlugins.Remove(sPluginTaskKeyID); plugin._fireFinished -= plugin__fireFinished; plugin.Shutdown(); } else { Console.WriteLine("Could not find ddos plugin in htPlugins to shutdown"); } }