コード例 #1
0
 /// <summary>
 /// Creates the or update wiki page asynchronous.
 /// </summary>
 /// <param name="redmineManager">The redmine manager.</param>
 /// <param name="projectId">The project identifier.</param>
 /// <param name="pageName">Name of the page.</param>
 /// <param name="wikiPage">The wiki page.</param>
 /// <returns></returns>
 public static Task <WikiPage> CreateWikiPageAsync(this RedmineManager redmineManager, string projectId,
                                                   string pageName, WikiPage wikiPage)
 {
     return(delegate { return redmineManager.CreateWikiPage(projectId, pageName, wikiPage); });
 }
コード例 #2
0
 /// <summary>
 /// Creates the or update wiki page asynchronous.
 /// </summary>
 /// <param name="redmineManager">The redmine manager.</param>
 /// <param name="projectId">The project identifier.</param>
 /// <param name="pageName">Name of the page.</param>
 /// <param name="wikiPage">The wiki page.</param>
 /// <returns></returns>
 public static Task <WikiPage> CreateWikiPageAsync(this RedmineManager redmineManager, string projectId, string pageName, WikiPage wikiPage)
 {
     return(Task.Factory.StartNew(() => redmineManager.CreateWikiPage(projectId, pageName, wikiPage), CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default));
 }