예제 #1
0
        public string Initialize([FromBody] RequestBody requestBody)
        {
            SimpleCondition condition = new SimpleCondition();
            //Need to parse query string using shunting yard algorithm and convert to ICondition.
            var token = _csvReader.Initialize(requestBody.ColumnNames, requestBody.csvName, condition);

            return(token);
        }
예제 #2
0
        /*=================================================================================================
        *       PUBLIC METHODS
        *================================================================================================*/
        /*************************************************************************************************/
        public void ParseUsersCSVFile(string file)
        {
            string line;

            _reader.Initialize(file);

            line = _reader.ReadLine();

            while (ValidLine(line))
            {
                _encryptedUserList.Add(ParseLine(line));
                line = _reader.ReadLine();
            }

            _reader.Close();
        }