IPublishingTaskManager?

Topics: Customizing Orchard, Writing modules
Mar 10, 2012 at 9:00 AM

What is the purpose of the following code (bold) in the blog module, ie. BlogPostService class:

	public void Delete(BlogPostPart blogPostPart) {
            _publishingTaskManager.DeleteTasks(blogPostPart.ContentItem);
            _contentManager.Remove(blogPostPart.ContentItem);
        }

I'm learning a lot by seeing what is done in other modules and when I came to the delete subject for my own module I found this bit. So far I'm only using the _contentManager.Remove() method and all works fine, however, I'm wondering if I'm missing out on something.

Is there somewhere some documentation on the IPublishingTaskManager concept perhaps?

cheers

Coordinator
Mar 10, 2012 at 4:37 PM

This code should not be there. It is supposed to removed any publish later task. This should be handled by the pupblishlater module itself. You can file a bug for this.