Example #1
0
        public IQueryResult <T> Query <T>(IQueryRequest queryRequest)
        {
            var requestUri = queryRequest.GetRequestUri();

            var queryResult = queryRequest.IsPost ?
                              Post <T>(queryRequest) : Get <T>(requestUri);

            return(queryResult);
        }
Example #2
0
        public Task <IQueryResult <T> > QueryAsync <T>(IQueryRequest queryRequest)
        {
            var requestUri = queryRequest.GetRequestUri();

            var queryResult = queryRequest.IsPost ?
                              PostAsync <T>(queryRequest) : GetAsync <T>(requestUri);

            return(queryResult);
        }
Example #3
0
        public IQueryResult <T> Query <T>(IQueryRequest queryRequest)
        {
            if (queryRequest.IsPrepared)
            {
                CachePreparedStatement(queryRequest);
            }
            var requestUri = queryRequest.GetRequestUri();

            var queryResult = queryRequest.IsPost ?
                              Post <T>(queryRequest) : Get <T>(requestUri);

            return(queryResult);
        }