示例#1
0
 private void setArticleRead()
 {
     try
     {
         if (Archives.Contains(SelectedArticles))
         {
             return;
         }
         FeedsManager.FeedsManagerClient clt = new FeedsManagerClient();
         clt.SetArticlesReadForUserAsync(SelectedArticles.Id, WebContext.Current.Authentication.User.Identity.Name);
         clt.SetArticlesReadForUserCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(clt_SetArticlesReadForUserCompleted);
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
     }
 }
示例#2
0
 private void setArticleRead()
 {
     try
     {
         if (SelectedArticles == null)
         {
             return;
         }
         FeedsManager.FeedsManagerClient clt = new FeedsManagerClient();
         clt.SetArticlesReadForUserAsync(SelectedArticles.Id, CurrentUser.Name);
         clt.SetArticlesReadForUserCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(clt_SetArticlesReadForUserCompleted);
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
     }
 }