GetLapTimesList() private method

private GetLapTimesList ( ILapTimesReader reader ) : IReadOnlyList
reader ILapTimesReader
return IReadOnlyList
Beispiel #1
0
 private async Task <IReadOnlyList <LapTimeEntry> > ReadAcDbEntriesAsync()
 {
     InitializeAc();
     return(await Task.Run(() => {
         using (var reader = new AcLapTimesReader(FileUtils.GetDocumentsDirectory())) {
             return _acDbStorage.GetLapTimesList(reader);
         }
     }));
 }
Beispiel #2
0
        private async Task <IReadOnlyList <LapTimeEntry> > ReadAcNewEntriesAsync()
        {
            await TracksManager.Instance.EnsureLoadedAsync();

            InitializeAcNew();
            return(await Task.Run(() => {
                using (var reader = new AcLapTimesNewReader(FileUtils.GetDocumentsDirectory(), this)) {
                    return _acStorageNew.GetLapTimesList(reader);
                }
            }));
        }