Ejemplo n.º 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;
Ejemplo n.º 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;