public static void LogCodeToDB(string data, string input, string compiler_args, string result, int lang, bool is_api) { try { var job = new LogDBJob(data, input, compiler_args, result, lang, is_api); ThreadPool.QueueUserWorkItem(f => job.DoWork()); } catch (Exception) { } }
public static void LogCodeToDB(string data, string result) { try { var job = new LogDBJob(data, result); System.Threading.Thread worker = new System.Threading.Thread(job.DoWork); worker.Start(); } catch (Exception) { } }