U4-2110 - PublishingStrategy.Published Event doesn't fire

Created by Jeremy Loeckler 12 Apr 2013, 16:42:32 Updated by Sebastiaan Janssen 13 Apr 2013, 11:07:42

I'm unable to get the Published event to fire in v6.03.

It looks like I am not alone (http://our.umbraco.org/forum/developers/api-questions/39226-PublishingStrategyPublished-event-not-being-hit-in-v6).

Here's a simplified snippet of what I'm trying to do...

namespace EventHandlers { public class DemoPublishedEvent : IApplicationStartupHandler { public SomeNameHere() { Umbraco.Core.Publishing.PublishingStrategy.Publishing += CustomPublishingEventHandler; Umbraco.Core.Publishing.PublishingStrategy.Published += CustomPublishedEventHandler; }

	private void CustomPublishingEventHandler(Umbraco.Core.Publishing.IPublishingStrategy sender, Umbraco.Core.Events.PublishEventArgs<Umbraco.Core.Models.IContent> e)
    {
		//This event fires as expected
        foreach (var item in e.PublishedEntities)
        {
            //Do stuff
        }
	}
	
    private void CustomPublishedEventHandler(Umbraco.Core.Publishing.IPublishingStrategy sender, Umbraco.Core.Events.PublishEventArgs<Umbraco.Core.Models.IContent> e)
    {	
		//A breakpoint here is never hit
        foreach (var item in e.PublishedEntities)
        {
            //Do stuff
        }
    }


}

}

NOTE: Please advise if any element of this issue is formatted poorly. This is my 1st submission.

Comments

Morten Christensen 12 Apr 2013, 21:34:30

We are aware of this, and actually already fixed this issue in both 6.0.4 and 6.1.0-beta. It was fixed in relation to adding proxies for the publish events in the ContentService. I'll find the reference for this. You can use the latest nightly build of 6.0.4 to fix the issue. I believe the 6.0.4-release is scheduled for 1st of may.


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category: Extensibility

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.0.3

Due in version: 6.0.4

Sprint:

Story Points:

Cycle: