Exemple #1
0
        public IMessage Parse(BufferSlice slice)
        {
            _reader.Assign(slice);

            _logger.Trace("Parsing method: " + _parserMethod.Method.Name);
            while (_parserMethod())
            {
                _logger.Trace("Next parsing method: " + _parserMethod.Method.Name);
            }


            if (_isComplete)
            {
                return(_message);
            }

            return(null);
        }
        public IMessage Parse(BufferSlice slice)
        {
            _reader.Assign(slice);

            string read = System.Text.Encoding.UTF8.GetString(_reader.Buffer);

            _logger.Trace("Parsing method: " + _parserMethod.Method.Name);
            while (_parserMethod())
            {
                _logger.Trace("Next parsing method: " + _parserMethod.Method.Name);
            }


            if (_isComplete)
            {
                return(_message);
            }

            return(null);
        }