Arma2NETMySQLPlugin.MySQL.GetCommand C# (CSharp) Method

GetCommand() private method

private GetCommand ( string procedureName ) : MySqlCommand
procedureName string
return MySql.Data.MySqlClient.MySqlCommand
        private MySqlCommand GetCommand(string procedureName)
        {
            MySqlCommand cmd = null;
            // only one request at a time.
            lock (getCommandSync)
            {
                // create the command
                cmd = new MySqlCommand();
                cmd.CommandType = System.Data.CommandType.StoredProcedure;
                cmd.Connection = connection;
                cmd.CommandText = procedureName;
                cmd.Prepare();
            }
            return cmd;
        }