Windows Azure RoleEntryPoint Method Call Order
Posted
by kaleidoscope
on Geeks with Blogs
See other posts from Geeks with Blogs
or by kaleidoscope
Published on Mon, 22 Mar 2010 04:37:26 GMT
Indexed on
2010/03/22
5:41 UTC
Read the original article
Hit count: 277
Filed under:
Worker Role Call Order:
WaWorkerHost process is started.
- Worker Role assembly is loaded and surfed for a class that derives from RoleEntryPoint. This class is instantiated.
- RoleEntryPoint.OnStart() is called.
- RoleEntryPoint.Run() is called.
- If the RoleEntryPoint.Run() method exits, the RoleEntryPoint.OnStop() method is called .
- WaWorkerHost process is stopped. The role will recycle and startup again.
Web Role Call Order:
- WaWebHost process is started.
- Hostable Web Core is activated.
- Web role assembly is loaded and RoleEntryPoint.OnStart() is called.
- Global.Application_Start() is called.
- The web application runs
- Global.Application_End() is called.
- RoleEntryPoint.OnStop() is called.
- Hostable Web Core is deactivated.
- WaWebHost process is stopped.
For Further Reference:
http://blogs.msdn.com/jnak/archive/2010/02/11/windows-azure-roleentrypoint-method-call-order.aspx
© Geeks with Blogs or respective owner