Global.asax.cs 599 Bytes
Newer Older
Vaclav Svaton's avatar
Vaclav Svaton committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using HaaSMiddleware.BackgroundThread;
using log4net.Config;

namespace HaaSMiddleware.WebServices {
	public class Global : System.Web.HttpApplication {
		MiddlewareBackgroundTaskRunner timer;
		
		protected void Application_Start(object sender, EventArgs e) {
			XmlConfigurator.Configure();
			timer = new MiddlewareBackgroundTaskRunner();
			timer.Start();
		}

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