RefreshAsync() public method

public RefreshAsync ( Twitter tw, bool startup, IProgress progress ) : System.Threading.Tasks.Task
tw Twitter
startup bool
progress IProgress
return System.Threading.Tasks.Task
示例#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();
            }
        }