AspNet.StarterKits.Classifieds.Web.ClassifiedsHttpApplication.Application_Start C# (CSharp) Method

Application_Start() public method

public Application_Start ( Object sender, EventArgs e ) : void
sender Object
e System.EventArgs
return void
		public void Application_Start(Object sender, EventArgs e)
		{
			_siteUrl = GetSiteUrl();

			// set-up Settings
			ClassifiedsHttpApplication.ClassifiedsApplicationSettings = SiteSettings.LoadFromConfiguration();

			// set-up maintenance timer
			_lastNotificationTime = DateTime.Now;
			TimerCallback callback = new TimerCallback(Maintenance.HourlyMaintenanceTimer);
			_hourlyTimer = new Timer(callback, null, TimeSpan.Zero, TimeSpan.FromHours(1.0));
		}