Example #1
0
        /// <summary>
        /// Obtiene las tareas de sincronización ejecutadas de un repositorio OAIPMH
        /// </summary>
        /// <param name="idRepositoy">Identificador del repositorio</param>
        /// <returns>Lista de tareas</returns>
        public List <JobViewModel> GetJobsOfRepo(Guid idRepositoy)
        {
            string result = _serviceApi.CallGetApi("", $"Job/repository/{idRepositoy.ToString()}", _token);
            List <JobViewModel> resultObject = JsonConvert.DeserializeObject <List <JobViewModel> >(result);

            return(resultObject);
        }
Example #2
0
        /// <summary>
        /// Obtiene las tareas ejecutadas a partir de una tarea recurrente
        /// </summary>
        /// <param name="name">Nombre de la tarea recurrente</param>
        /// <returns>Lista de tareas</returns>
        internal List <JobViewModel> GetJobsOfRecurringJob(string name)
        {
            string result = _serviceApi.CallGetApi("", $"{_urlRecurringJobApi}/Jobs/{name}", _token);
            List <JobViewModel> resultObject = JsonConvert.DeserializeObject <List <JobViewModel> >(result);

            return(resultObject);
        }