Esempio n. 1
0
        protected IEnumerable <TOutput> ExecuteLoad <TOutput>(string loadQS, FormatType responseFormat, IDataSerializer <TOutput> serializer, IResponseFormatter <string> formatter)
        {
            Uri    loadUri           = MakeUri(SelectUri, loadQS);
            string response          = _httpHelper.Get(loadUri);
            string formattedResponse = formatter != null?formatter.Format(response) : response;

            return(serializer.DeSerialize(formattedResponse, responseFormat));
        }
Esempio n. 2
0
        protected IEnumerable <TOutput> ExecuteLoad <TOutput>(string loadQS, FormatType responseFormat,
                                                              IDataSerializer <TOutput> serializer, IResponseFormatter <string> formatter, out long start, out long numFound)
        {
            var loadUri           = MakeUri(SelectUri, loadQS);
            var response          = _httpHelper.Get(loadUri);
            var formattedResponse = formatter != null?formatter.Format(response) : response;

            return(serializer.DeSerialize(formattedResponse, responseFormat, out start, out numFound));
        }