Пример #1
0
 public Task <List <AutocompleteRow> > GetAllTalksAsync()
 => _cache.GetOrCreateAsync(nameof(GetAllTalksAsync),
                            cacheEntry =>
 {
     cacheEntry.SlidingExpiration = TimeSpan.FromMinutes(10);
     return(_talkService.GetAllTalksAsync());
 }
                            );
Пример #2
0
 public Task <List <AutocompleteRow> > GetTalks()
 => _talkService.GetAllTalksAsync();