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); } }
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); } }