OpenTween.Models.RelatedPostsTabModel.RefreshAsync C# (CSharp) Méthode

RefreshAsync() public méthode

public RefreshAsync ( Twitter tw, bool startup, IProgress progress ) : System.Threading.Tasks.Task
tw Twitter
startup bool
progress IProgress
Résultat System.Threading.Tasks.Task
        public Task RefreshAsync(Twitter tw, bool startup, IProgress<string> progress)
            => this.RefreshAsync(tw, false, startup, progress);

Same methods

RelatedPostsTabModel::RefreshAsync ( Twitter tw, bool _, bool startup, IProgress progress ) : System.Threading.Tasks.Task

Usage Example

Exemple #1
0
        private async Task GetRelatedTweetsAsync(RelatedPostsTabModel tab)
        {
            await this.workerSemaphore.WaitAsync();

            try
            {
                await tab.RefreshAsync(this.tw, this._initial, this.workerProgress);

                this.RefreshTimeline();
            }
            catch (WebApiException ex)
            {
                this._myStatusError = true;
                this.StatusLabel.Text = $"Err:{ex.Message}(GetRelatedTweets)";
            }
            finally
            {
                this.workerSemaphore.Release();
            }
        }