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<IForumDeletingEvent>(evt => ForumDeletingEventHandler(evt));
        }

        public void ForumDeletingEventHandler(IForumDeletingEvent eventInfo)
        {
            var forumsUserId = eventInfo.UserId;
        }
    }
}