Ejemplo n.º 1
0
 public async Task <NiconicoVideoRss> GetCategoryRanking(RankingCategory category, RankingTarget target, RankingTimeSpan timeSpan)
 {
     return(await ContextActionAsync(async context =>
     {
         return await NiconicoRanking.GetRankingData(target, timeSpan, category);
     }));
 }
Ejemplo n.º 2
0
 public async Task <NiconicoVideoRss> GetCategoryRanking(RankingCategory category, RankingTarget target, RankingTimeSpan timeSpan)
 {
     return(await ConnectionRetryUtil.TaskWithRetry(async() =>
     {
         return await NiconicoRanking.GetRankingData(target, timeSpan, category);
     }));
 }
Ejemplo n.º 3
0
        protected override async Task <int> HohoemaPreloadingResetSourceImpl()
        {
            RankingRss = await NiconicoRanking.GetRankingData(_Target, _TimeSpan, _Category);

            return(RankingRss.Channel.Items.Count);
        }
        protected override async Task <int> ResetSourceImpl()
        {
            RankingRss = await NiconicoRanking.GetRankingData(Target, TimeSpan, Category);

            return(RankingRss.Channel.Items.Count);
        }