I have the global.asax
which extends from a custom class I created, called MvcApplication
which extends from System.Web.HttpApplication
.
In it's constructor, it logs application start as per below:
protected MvcApplicationGeneral()
{
_log.Info("logApplicationStartToTextFile");
}
When I went to look in the log file, this seems to be called A LOT of times, not just once per application start. I placed another log entry in Application_Start
and that seems to be called only once. Is the Global.asax
class instantiated per request, or much more frequently than just once per application?