public async Task <ResourceDescription> GetValues(long resourceId, List <ModelCode> propIds)
 {
     try
     {
         ResourceDescription retVal = nm.GetValues(resourceId, propIds);
         return(retVal);
     }
     catch (Exception ex)
     {
         string message = string.Format("Getting values for resource with ID = 0x{0:x16} failed. {1}", resourceId, ex.Message);
         Logger.LogError(message, ex);
         throw new Exception(message);
     }
 }
        private async Task <List <ResourceDescription> > CollectData(List <long> resultIDs)
        {
            try
            {
                List <ResourceDescription> result = new List <ResourceDescription>();

                List <ModelCode> propertyIds = null;
                foreach (long globalId in resultIDs)
                {
                    propertyIds = class2PropertyIDs[(DMSType)ModelCodeHelper.ExtractTypeFromGlobalId(globalId)];
                    result.Add(await networkModel.GetValues(globalId, propertyIds));
                }

                return(result);
            }
            catch (Exception ex)
            {
                Logger.LogError($"Collecting ResourceDescriptions failed. Exception: {ex.Message}", ex);
                throw;
            }
        }
 public Task <List <IdentifiedObject> > GetValues(List <long> globalIds)
 {
     return(_networkModel.GetValues(globalIds));
 }