Exemple #1
0
        public async Task <IEnumerable <PObject> > GetTasksAsync(string filter)
        {
            CheckApi();
            var searchService = _searchServiceFactory.GetSearchService(this, _currentPerson, _types);
            var searchResult  = await searchService.Search(filter);

            if (searchResult.Found == null)
            {
                return(Array.Empty <PObject>());
            }

            var objects = GetObjects(searchResult.Found.ToArray());
            var tasks   = LoadTasks(objects, searchResult.Found);

            return(tasks);
        }
Exemple #2
0
 public ISearchService GetSearchService()
 {
     CheckApi();
     return(_searchServiceFactory.GetSearchService(this, _currentPerson, _types));
 }