Пример #1
0
 /// <summary>
 /// Caches the departures according to departure board request.
 /// </summary>
 private static async Task <bool> CacheDepartureBoardAsync(LineInfoRequest dbRequest, bool forceCache = false) =>
 LineInfoCached.CacheResults(DataFeedDesktop.Basic.RoutesInfo.FindByIndex(dbRequest.RouteInfoID), DataFeedDesktop.OfflineMode ? new DepartureBoardResponse() : await SendDepartureBoardRequestAsync(dbRequest, forceCache)) != null;
Пример #2
0
 /// <summary>
 /// Caches the departures according to departure board request.
 /// </summary>
 private static async Task <bool> CacheDepartureBoardAsync(LineInfoRequest dbRequest, bool forceUpdate = false) => CanBeCached?
 LineInfoCached.CacheResults(DataFeedClient.Basic.RoutesInfo.FindByIndex(dbRequest.RouteInfoID), await SendDepartureBoardRequestAsync(dbRequest, forceUpdate)) != null : false;