What starts first Application_Start or WebRole's OnStart?
问题 I have MVC project on Windows Azure. This project has WebRole with method OnStart. And I want to know what starts first Application_Start of Global.asax or WebRole's OnStart? 回答1: Pretty sure this is non-deteministic after SDK 1.3. Trying to time something from one to the other will just end in a race condition. Prior to 1.3, the Hosted Worker Core (HWC) was hosted in the RoleEntryPoint, so there was a deterministic startup (OnStart, Application_OnStart, IIRC). However, with IIS hosting the