protected void Application_Start(object sender, EventArgs e)
        {
            log4net.Config.XmlConfigurator.Configure();

            GlobalConfiguration.Configure(RouteConfig.RegisterWebAPI);

            // TODO: Add this to owin startup, get the DNN PortalID from the app somehow.
            int portalId = 0;

            DnnEventLogDependency.Init(portalId);
        }
 protected void Application_End(object sender, EventArgs e)
 {
     DnnEventLogDependency.Stop();
 }