Exemple #1
0
 public void setAllRead()
 {
     try
     {
         FeedsManager.FeedsManagerClient clt = new FeedsManagerClient();
         clt.SetAllArticlesReadForUserAsync(CurrentUser.Name);
         clt.SetAllArticlesReadForUserCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(clt_SetAllArticlesReadForUserCompleted);
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
     }
 }
Exemple #2
0
 private void setAllRead()
 {
     try
     {
         if (Archives.Contains(SelectedArticles))
         {
             return;
         }
         FeedsManager.FeedsManagerClient clt = new FeedsManagerClient();
         clt.SetAllArticlesReadForUserAsync(WebContext.Current.Authentication.User.Identity.Name);
         clt.SetAllArticlesReadForUserCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(clt_SetAllArticlesReadForUserCompleted);
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
     }
 }