public async Task DeclareAnimeToBeDisplayedAsync(IEnumerable <int> malAnimeIds) { if (DbConnectionFactory == null) { return; // Null is passed when precompiling the views } using (IAnimeRecsDbConnection conn = DbConnectionFactory.GetConnection()) { await conn.OpenAsync().ConfigureAwait(false); StreamsByAnime = await conn.GetStreamsAsync(malAnimeIds).ConfigureAwait(false); } }
public static Task OpenAsync(this IAnimeRecsDbConnection conn) { return(conn.OpenAsync(CancellationToken.None)); }