Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 28, 2006 09:35 PM by Kadjiokou
Member
417 Points
89 Posts
Sep 22, 2006 02:31 PM|LINK
Participant
1432 Points
326 Posts
Sep 28, 2006 08:31 PM|LINK
Look in Global.asax you will see this:
ClassifiedsHttpApplication cha = new ClassifiedsHttpApplication();
It will cause the following code to execute(A timer is cretaed)
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); Timer _hourlyTimer = new Timer(callback, null, TimeSpan.Zero, TimeSpan.FromHours(1.0)); }
ClassifiedsHttpApplication derives from HttpApplication .
The codes there runs as long the web application is alive.
Thanks /Kadji
Sep 28, 2006 08:49 PM|LINK
Sep 28, 2006 09:35 PM|LINK
That was a different question i beleive.
You might want to read the below:
http://hyperthink.net/blog/CommentView,guid,814816c5-bf82-4d0d-9480-a60713e97705.aspx
Thanks
/Kadji
tonsai
Member
417 Points
89 Posts
What Fires The Administrator Notifications
Sep 22, 2006 02:31 PM|LINK
Kadjiokou
Participant
1432 Points
326 Posts
Re: What Fires The Administrator Notifications
Sep 28, 2006 08:31 PM|LINK
Look in Global.asax you will see this:
ClassifiedsHttpApplication cha = new ClassifiedsHttpApplication();
It will cause the following code to execute(A timer is cretaed)
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);
Timer _hourlyTimer = new Timer(callback, null, TimeSpan.Zero, TimeSpan.FromHours(1.0));
}
ClassifiedsHttpApplication derives from HttpApplication .
The codes there runs as long the web application is alive.
Thanks
/Kadji
tonsai
Member
417 Points
89 Posts
Re: What Fires The Administrator Notifications
Sep 28, 2006 08:49 PM|LINK
Kadjiokou
Participant
1432 Points
326 Posts
Re: What Fires The Administrator Notifications
Sep 28, 2006 09:35 PM|LINK
That was a different question i beleive.
You might want to read the below:
http://hyperthink.net/blog/CommentView,guid,814816c5-bf82-4d0d-9480-a60713e97705.aspx
Thanks
/Kadji