Last active
September 5, 2018 10:56
SF_10.1, SF_10.2 - 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.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