コード例 #1
0
 /// <summary>
 /// Do an action on all managed stories then save the modifications
 /// </summary>
 /// <param name="action">action that accepts a story</param>
 /// <returns>This</returns>
 /// <remarks>saves are done after each action call</remarks>
 public StoriesFacade UpdateAll(Action <Story> action)
 {
     foreach (var s in Item)
     {
         StoryFacade <StoriesFacade> f = new StoryFacade <StoriesFacade>(this, s);
         f.Update(action);
     }
     return(this);
 }
コード例 #2
0
 /// <summary>
 /// Do an action on all managed stories then save the modifications
 /// </summary>
 /// <param name="action">action that accepts a story</param>
 /// <returns>This</returns>
 /// <remarks>saves are done after each action call</remarks>
 public async Task <StoriesFacade> UpdateAllAsync(Action <Story> action)
 {
     foreach (var s in Item)
     {
         StoryFacade <StoriesFacade> f = new StoryFacade <StoriesFacade>(this, s);
         await f.UpdateAsync(action);
     }
     return(this);
 }