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 <IDictionary <int, ICollection <streaming_service_anime_map> > > GetStreamsAsync(this IAnimeRecsDbConnection conn, IEnumerable <int> malAnimeIds) { return(conn.GetStreamsAsync(malAnimeIds, CancellationToken.None)); }