Esempio n. 1
0
 /// <summary>
 /// Get all objects.<typeparamref name="T"/></returns>
 /// </summary>
 /// <returns>List of <typeparamref name="T"/></returns>
 /// <exception cref="System.Exception">Throws Activity exception.</exception>
 internal List <T> GetAll(string jsonRoot)
 {
     return(BaseInfoProvider <List <T> > .ExecuteOperation(string.Concat(_baseUrl, _url), HttpMethod.GET, _username, _password, jsonRoot));
 }
Esempio n. 2
0
        //TODO: Sort, TenantId, Pagination

        /// <summary>
        /// Get all objects.
        /// </summary>
        /// <returns>List of <typeparamref name="T"/></returns>
        /// <exception cref="System.Exception"></exception>
        /// <example>
        /// Usage:
        ///     GetAll("id:jobid","executionId:executionId");
        /// </example>
        internal virtual List <T> GetAll(params string[] queryKeyValues)
        {
            string url = string.Concat(_baseUrl, _url) + "?" + string.Join("&", queryKeyValues);

            return(BaseInfoProvider <List <T> > .ExecuteOperation(url, HttpMethod.GET, _username, _password, jsonRoot : "data"));
        }