Пример #1
0
        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);
            }
        }
Пример #2
0
 public static Task OpenAsync(this IAnimeRecsDbConnection conn)
 {
     return(conn.OpenAsync(CancellationToken.None));
 }