Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 public Task PublishAsync(PublishPageCommand command)
 {
     return(ExtendableContentRepository.ExecuteCommandAsync(command));
 }
Esempio n. 3
0
        public Task PublishPageCommandAsync(int pageId, IExecutionContext executionContext = null)
        {
            var command = new PublishPageCommand(pageId);

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