/// <summary> /// Run the tally using the provided posts, for the selected quest. /// </summary> /// <param name="posts">The posts to be tallied.</param> /// <param name="quest">The quest being tallied.</param> /// <param name="token">Cancellation token.</param> public async Task TallyPosts(IEnumerable <PostComponents> posts, IQuest quest, CancellationToken token) { Quest = quest; PostsList.Clear(); PostsList.AddRange(posts); await TallyPosts(token).ConfigureAwait(false); }
/// <summary> /// Run the tally using the provided posts, for the selected quest. /// </summary> /// <param name="posts">The posts to be tallied.</param> /// <param name="quest">The quest being tallied.</param> /// <param name="token">Cancellation token.</param> public async Task TallyPosts(IEnumerable <PostComponents> posts, IQuest quest, CancellationToken token) { Quest = quest; PostsList.Clear(); PostsList.AddRange(posts); await TallyPosts(token).ConfigureAwait(false); OrderedTaskList.AddRange(ViewModelService.MainViewModel.KnownTasks); OnPropertyChanged("Tasks"); }