I'm working with Web 8 and Web 8.5, in both I need to be able to stop a publish based on a custom logic (I should not allow it to be made), my options are:
- Use event system
Use event system Probably something like:
EventSystem.SubscribeAsync<Page, PublishEventArgs>(OnPagePublishPre, EventPhases.Initiated);
- Use Custom Resolver
Use Custom Resolver
It's my understanding I can accomplish the stop with both approaches. My question is if there's one that's better over the other, taking into account performance and cases where many pages/components can be sent to be published.
I don't find the life cycle of this, which one would happen first?
Thanks in advance! Guillermo.