示例#1
0
        async Task ExecuteLoadSocialCommandAsync()
        {
            if (this.LoadingSocial)
            {
                return;
            }

            this.LoadingSocial = true;
            try
            {
                this.SocialError = false;
                this.Tweets.Clear();
                this.Tweets.ReplaceRange(await TweetHelper.Get());
            }
            catch (Exception ex)
            {
                this.SocialError  = true;
                ex.Data["method"] = "ExecuteLoadSocialCommandAsync";
                this.Logger.Report(ex);
            }
            finally
            {
                this.LoadingSocial = false;
            }
        }
示例#2
0
 public StreamEventHandler(TweetHelper tweetHelper)
 {
     _tweetHelper = tweetHelper;
 }