Last active
September 5, 2018 13:14
SF_10.1, SF_10.2 - https://docs.sitefinity.com/for-developers-profile-events
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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