To get a good idea of the order in which workflow events are raised, let's register all the events in the TropicalGreen
project.
Open the code-behind file of the Global.asax
file of the TropicalGreen
project. First, add using
statements to import namespaces from the MCMS PAPI and System.IO
above the TropicalGreen namespace declaration.
using System; using System.Collections; using System.ComponentModel; using System.Web; using System.Web.SessionState; using Microsoft.ContentManagement.Publishing; using Microsoft.ContentManagement.Publishing.Events; using Microsoft.ContentManagement.Publishing.Extensions.Placeholders; using System.IO; namespace TropicalGreen { /// <summary> /// Summary description for Global. /// </summary> public class Global : System.Web.HttpApplication { public Global() { InitializeComponent(); } } . . . code continues . . . }
Within the class declaration, below the Global()
constructor, add the event handlers. You...