Beispiel #1
0
 public Task <List <AutocompleteRow> > GetAllVenuesAsync()
 => _cache.GetOrCreateAsync(nameof(GetAllVenuesAsync),
                            cacheEntry =>
 {
     cacheEntry.SlidingExpiration = TimeSpan.FromMinutes(10);
     return(_venueService.GetAllVenuesAsync());
 }
                            );
Beispiel #2
0
 public Task <List <AutocompleteRow> > GetVenues()
 => _venueService.GetAllVenuesAsync();