Created
September 5, 2018 10:20
SF_11.0, SF_11.1, SF_11.2, SF_12.0, SF_12.1, SF_12.2, SF_13.0, SF_13.1, SF_13.2, SF_13.3, SF_14.0, SF_14.1, SF_14.2, SF_14.3 - https://docs.sitefinity.com/for-developers-forums-events
This file contains hidden or 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.Abstractions; | |
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) | |
{ | |
Bootstrapper.Bootstrapped += Bootstrapper_Bootstrapped; | |
} | |
private void Bootstrapper_Bootstrapped(object sender, EventArgs e) | |
{ | |
EventHub.Subscribe<IForumThreadCreatingEvent>(evt => ForumThreadCreatingEventHandler(evt)); | |
} | |
public void ForumThreadCreatingEventHandler(IForumThreadCreatingEvent eventInfo) | |
{ | |
var forumsUserId = eventInfo.UserId; | |
var forumThread = eventInfo.Item; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment