/// <summary> /// Query popular topics count /// </summary> /// <param name="timeRange">Time range</param> /// <param name="hostAppHandle">Hosting app handle: Master app or client app</param> /// <returns>Popular topics feed length</returns> public async Task <long> QueryPopularTopicsCount(TimeRange timeRange, string hostAppHandle) { CTStore store = await this.tableStoreManager.GetStore(ContainerIdentifier.PopularTopics); RankFeedTable table = this.tableStoreManager.GetTable(ContainerIdentifier.PopularTopics, TableIdentifier.PopularTopicsFeed) as RankFeedTable; string feedKey = this.GetPopularTopicsFeedKey(timeRange, hostAppHandle); return(await store.QueryRankFeedLengthAsync(table, ContainerIdentifier.PopularTopics.ToString(), feedKey)); }