private void threadexec(object obj) { IDBTask task = (IDBTask)obj; task.call(); ((BasicDBTask)task).Finish(); }
public void execute(IDBTask task) { if (conns.Count == 0) { throw new Exception("Empty DBConnection pool, task execute failed."); } task.setDBConnection(conns[0]); task.call(); }