Reputation: 1120
I am trying to use Alex Klock's solution with regards to querying the publishingqueue to see if in item is already still in it. His post about it is here: http://www.codedweapon.com/2012/03/tridion-publishengine/
I am using Tridion 2009 SP1, but it seems I don't have PublishTransactionsFilter available in my code abse. In the top of my file I did include: using Tridion.Contentmanager.Publishing;
Any exmaple on how to get something similar to work in Tridion 2009? Especially the PublishEngine.GetPublishTransactions
method. I can't find a similar method in the 2009 API. Only methods which need a specific TCMUri or XML.
Upvotes: 6
Views: 188
Reputation: 755
Yes you found it yourself but indeed just to confirm, the GetPublishTransactions
method is specific to SDL Tridion 2011.
The code on the link you provided is using the 2011 API of looking into the queue.
Upvotes: 4
Reputation: 10163
You will need to use the ManagementInfo Class which is documented in the 'Templating and Customization Manual TOM 2009 SP1.chm' help file that comes SDL Tridion 2009.
To quote:
The ManagementInfo object supports the following methods:
GetListPublishQueue Gets a list of items in the publishing queue(s) or scheduler. GetListPublishTransactions Gets a list of publish transactions
GetListPublishQueue: Summary - Gets a list of items in the publishing queue(s) or scheduler.
These classes and methods are contained in the COM version of the TOM DLL so you will need to use Interop to access this from Microsoft.NET
Upvotes: 4