I'm using the
PublishManager.Republish(...) to programmatically perform a full republish in a few Sitecore instances.
Since I need this operation to be synchronous, I'm calling the
PublishManager.WaitFor(handle) method right after the previous one.
It works like a charm on Sitecore 8x and 9x.
But I can't understand why the waitFor is always returning
false on my Sitecore 72 instance.
Did anyone face the same situation? Thanks in advance.
Edit: I'm using the types and methods present in Sitecore 7.2.151021 - Sitecore.Kernel.dll.
The handle returned by the Publish method is not null I can confirm here:
And I can confirm that the republish itself is being executed by seeing the newly created items on web database after a few seconds.