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