Skip to content

Instantly share code, notes, and snippets.

@sitefinitySDK
Last active September 5, 2018 13:14
using System;
using Telerik.Sitefinity.Security.Events;
using Telerik.Sitefinity.Services;
namespace SitefinityWebApp
{
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
SystemManager.ApplicationStart += new EventHandler<EventArgs>(ApplicationStartHandler);
}
private void ApplicationStartHandler(object sender, EventArgs e)
{
EventHub.Subscribe<ProfileDeleting>(evt => DeletingProfileEventHandler(evt));
}
public void DeletingProfileEventHandler(ProfileDeleting eventInfo)
{
var profile = eventInfo.Profile;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment