Пример #1
0
 public ExecuteResult DownloadImmediately(long _resourceID, string _url)
 {
     try
     {
         var _res = m_LocalDataStorage.GetUserOperResourceSetHighestPriority(_resourceID, _url);
         if (_res != null)
         {
             return(DownloadImmediately(_res));
         }
         else
         {
             LogInstance.Instance.LogWarn($"{ControlName}.DownloadImmediately ResourceID:[{_resourceID}], DownloadUrl:{_url}] from database, result is null.");
             return(ExecuteResult.Faile);
         }
     }
     catch (Exception ex)
     {
         LogInstance.Instance.LogError($"{ControlName}.DownloadImmediately ResourceID:[{_resourceID}], DownloadUrl:{_url}] Exception:{ex}.");
         return(ExecuteResult.Exception);
     }
 }