I have ASP MVC application. In Global.aspx I have Application_Start() and Application_End(object sender, EventArgs e).
I am aware that Application_End can triggered when web.config changes, site stopped/restarted etc. But I want to log what exactly triggered Application_End. sender
holds the details but I am unable to find to which class I should typecast it.