public MysqlEngine(string connectionString) { mConnections = new Stack<AsyncMysqlConnection>(); mCommandQueue = new SharedWorkQueue<AsyncMysqlCommand>(); mShuttingDown = false; mConnectionString = connectionString; }
public AsyncMysqlConnection(MySqlConnection connection, SharedWorkQueue<AsyncMysqlCommand> commandQueue) { mConnection = connection; mCommandQueue = commandQueue; mProcessor = new Thread(new ThreadStart(this.Process)); mRunning = true; mProcessor.Start(); }