Last active
March 7, 2020 13:31
-
-
Save jernejk/642a87dadc975685293ea764988ca06c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (_logger.BeginScope(new Dictionary<string, object> { { "EFQueries", "GetTweets" } })) | |
{ | |
var tweets = await _twitterService.GetTweets(ct); | |
} | |
// Same query as before. | |
public async Task<IEnumerable<Tweet>> GetTweets(CancellationToken ct = default) | |
{ | |
return await _context.Tweets | |
.ToListAsync(ct) | |
.ConfigureAwait(false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment