using System;
using Telerik.Sitefinity.Services;
using Telerik.Sitefinity.Services.Comments;

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<ICommentCreatingEvent>(evt => CreatingCommentsEventHandler(evt));
        }

        public void CreatingCommentsEventHandler(ICommentCreatingEvent eventInfo)
        {
            // your logic
        }
    }
}