Esempio n. 1
0
        /// <inheritdoc/>
        public TResponse MultiLineCommand <TResponse>(string command, IMultiLineResponseParser <TResponse> parser) //, bool decompress = false)
        {
            NntpResponse response = Command(command, new ResponseParser());

            IEnumerable <string> dataBlock = parser.IsSuccessResponse(response.Code)
                ? ReadMultiLineDataBlock()
                : new string[0];

            return(parser.Parse(response.Code, response.Message, dataBlock));
        }
Esempio n. 2
0
 public TResponse MultiLineCommand <TResponse>(string command, IMultiLineResponseParser <TResponse> parser)
 {
     throw new NotImplementedException();
 }