System.Threading.Tasks.TaskCompletionSource.SetResult(SQLResult)

Here are the examples of the csharp api System.Threading.Tasks.TaskCompletionSource.SetResult(SQLResult) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : PreparedStatement.cs
with GNU General Public License v3.0
from CypherCore

public bool Execute<T>(MySqlBase<T> mySqlBase)
        {
            if (_needsResult)
            {
                SQLResult result = mySqlBase.Query(m_stmt);
                if (result == null)
                {
                    m_result.SetResult(new SQLResult());
                    return false;
                }

                m_result.SetResult(result);
                return true;
            }

            return mySqlBase.DirectExecute(m_stmt);
        }