public async override Task <IEnumerable <RecentesSchema> > LoadDataAsync()
 {
     try
     {
         var serviceDataProvider = new ServiceDataProvider(_appId, _dataSourceName);
         return(await serviceDataProvider.Load <RecentesSchema>());
     }
     catch (Exception ex)
     {
         AppLogs.WriteError("RecentesDataSource.LoadData", ex.ToString());
         return(new RecentesSchema[0]);
     }
 }
Пример #2
0
 public async Task <IEnumerable <PhotosSchema> > LoadData()
 {
     if (_data == null)
     {
         try
         {
             var serviceDataProvider = new ServiceDataProvider(_appId, _dataSourceName);
             _data = await serviceDataProvider.Load <PhotosSchema>();
         }
         catch (Exception ex)
         {
             AppLogs.WriteError("PhotosDataSource.LoadData", ex.ToString());
         }
     }
     return(_data);
 }