コード例 #1
0
        void ddosPluginPlugin__fireFinished(string sPluginTaskKeyID)
        {
            if (htPluginPlugins.ContainsKey(sPluginTaskKeyID) == true)
            {
                DDoSPluginPlugin ddosPluginPlugin = (DDoSPluginPlugin)htPluginPlugins[sPluginTaskKeyID];

                RemoveWatchPluginPlugin(sPluginTaskKeyID);

                ddosPluginPlugin.Shutdown();
            }
        }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
        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();
            }
        }
コード例 #4
0
        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");
            }
        }