Skip to content

Instantly share code, notes, and snippets.

@sitefinitySDK
Last active September 5, 2018 10:28
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<IForumPostEvent>(evt => ForumPostEventHandler(evt));
}
public void ForumPostEventHandler(IForumPostEvent eventInfo)
{
var forumsUserId = eventInfo.UserId;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment