コード例 #1
0
ファイル: PageRepository.cs プロジェクト: kishea/kteq-cms
 /// <summary>
 /// Publishes a page. If the page is already published and
 /// a date is specified then the publish date will be updated.
 /// </summary>
 /// <param name="command">Publishing command to execute.</param>
 /// <param name="executionContext">Optional execution context to use when executing the command. Useful if you need to temporarily elevate your permission level.</param>
 public Task PublishPageCommandAsync(PublishPageCommand command, IExecutionContext executionContext = null)
 {
     return(_commandExecutor.ExecuteAsync(command, executionContext));
 }
コード例 #2
0
 public Task PublishAsync(PublishPageCommand command)
 {
     return(ExtendableContentRepository.ExecuteCommandAsync(command));
 }
コード例 #3
0
ファイル: PageRepository.cs プロジェクト: zerioxen/cofoundry
        public Task PublishPageCommandAsync(int pageId, IExecutionContext executionContext = null)
        {
            var command = new PublishPageCommand(pageId);

            return(_commandExecutor.ExecuteAsync(command, executionContext));
        }