using System;
using System.Web;
using AjaxUploader.Services;

namespace AjaxUploader.Demos
{
    public class Global : HttpApplication
    {
        protected void Application_Start(object sender, EventArgs e)
        {
            // Start background cleanup of expired temp files
            TempFileCleanupService.Start();
        }

        protected void Application_End(object sender, EventArgs e)
        {
            TempFileCleanupService.Stop();
        }
    }
}
