public void ThreadStopper(ResultJMSEventArgrs result) { //if (result.resultBool == true) //{ if (result != null) { if (this.threadList.TryGetValue(result.resultJMS.FileName.ToString(), out Thread thread)) { if (thread.IsAlive) { System.Diagnostics.Debug.WriteLine("THREAD FOR FILE : " + result.resultJMS.FileName + " STOPPED ! RESULT FOUND !"); thread.Join(); thread.Interrupt(); //thread.Abort(); System.Diagnostics.Debug.WriteLine("THREAD FOR FILE : " + result.resultJMS.FileName + " Status is : " + thread.IsAlive); } } } }
public void OnJMSResult(object source, ResultJMSEventArgrs e) { System.Diagnostics.Debug.WriteLine("OnJSFResult In BruteForceEngine "); ThreadStopper(e); }