コード例 #1
0
 async Task <PreflightConcepts> GetConceptsAsyncImpl(HashSet <ConceptRef> crs)
 {
     if (user.IsInstitutional)
     {
         return(await reader.GetConceptsByIdsAsync(crs.Select(c => c.Id.Value).ToHashSet()));
     }
     return(await reader.GetConceptsByUniversalIdsAsync(crs.Select(c => c.UniversalId.ToString()).ToHashSet()));
 }
コード例 #2
0
 /// <summary>
 /// Preflight checks concepts.
 /// </summary>
 /// <returns>Preflight check results, which contains the actual concepts if the check passed.</returns>
 /// <param name="crs">Concept references.</param>
 /// <exception cref="System.Data.Common.DbException"/>
 public async Task <PreflightConcepts> GetConceptsAsync(HashSet <ConceptRef> crs)
 {
     log.LogInformation("Getting preflight check concepts. Refs:{@Refs}", crs);
     if (user.IsInstutional)
     {
         return(await reader.GetConceptsByIdsAsync(crs.Select(c => c.Id.Value).ToHashSet()));
     }
     return(await reader.GetConceptsByUniversalIdsAsync(crs.Select(c => c.UniversalId.ToString()).ToHashSet()));
 }