Exemplo n.º 1
0
 public async override Task <IEnumerable <YouTubeSchema> > LoadDataAsync()
 {
     try
     {
         var youTubeDataProvider = new YouTubeDataProvider(_url);
         return(await youTubeDataProvider.Load());
     }
     catch (Exception ex)
     {
         AppLogs.WriteError("ViSuAlSDataSourceDataSource.LoadData", ex.ToString());
         return(new YouTubeSchema[0]);
     }
 }
Exemplo n.º 2
0
 public async Task <IEnumerable <YouTubeSchema> > LoadData()
 {
     if (_data == null)
     {
         try
         {
             var youTubeDataProvider = new YouTubeDataProvider(_url);
             _data = await youTubeDataProvider.Load();
         }
         catch (Exception ex)
         {
             AppLogs.WriteError("KimPossibleDataSourceDataSource.LoadData", ex.ToString());
         }
     }
     return(_data);
 }