Esempio n. 1
0
        public QueryCallback AsyncQuery(PreparedStatement stmt)
        {
            PreparedStatementTask task = new PreparedStatementTask(stmt, true);
            // Store future result before enqueueing - task might get already processed and deleted before returning from this method
            Task <SQLResult> result = task.GetFuture();

            _queue.Push(task);
            return(new QueryCallback(result));
        }
Esempio n. 2
0
        public void Execute(PreparedStatement stmt)
        {
            PreparedStatementTask task = new PreparedStatementTask(stmt);

            _queue.Push(task);
        }