Skip to content

Instantly share code, notes, and snippets.

using System;
using Telerik.Sitefinity.Forums.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<IForumThreadSubscriptionDeletedEvent>(evt => ForumThreadSubscriptionDeletedEventHandler(evt));
}
public void ForumThreadSubscriptionDeletedEventHandler(IForumThreadSubscriptionDeletedEvent eventInfo)
{
var forumsUserId = eventInfo.UserId;
var deletionDate = eventInfo.DeletionDate;
var providerName = eventInfo.UserProvider;
var forumThreadId = eventInfo.ForumThreadId;
var forumProviderName = eventInfo.ForumThreadProvider;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment