Esempio n. 1
0
 async Task <PreflightResources> GetResourcesAsyncImpl(ResourceRefs refs)
 {
     if (user.IsInstitutional)
     {
         return(await reader.GetResourcesByIdsAsync(refs));
     }
     return(await reader.GetResourcesByUniversalIdsAsync(refs));
 }
Esempio n. 2
0
 /// <summary>
 /// Preflight checks resources.
 /// </summary>
 /// <returns>Preflight check results, which contains the actual resources if the check passed.</returns>
 /// <param name="refs">Resource references.</param>
 /// <exception cref="System.Data.Common.DbException"/>
 public async Task <PreflightResources> GetResourcesAsync(ResourceRefs refs)
 {
     log.LogInformation("Getting preflight resource check. Refs:{@Refs}", refs);
     if (user.IsInstutional)
     {
         return(await reader.GetResourcesByIdsAsync(refs));
     }
     return(await reader.GetResourcesByUniversalIdsAsync(refs));
 }