public async Task <ChannelVideoResponse> GetChannelVideo(string channelId, int page) { await WaitNicoPageAccess(); ChannelVideoResponse res = null; using (var releaser = await _NicoPageAccessLock.LockAsync()) { res = await Context.Channel.GetChannelVideosAsync(channelId, page); } return(res); }
protected override async Task <int> ResetSourceImpl() { _FirstResponse = await ChannelProvider.GetChannelVideo(ChannelId, 0); return(_FirstResponse?.TotalCount ?? 0); }