随笔 - 1  文章 - 0 评论 - 2 trackbacks - 0
<2012年2月>
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

昵称:hailsorm
园龄:4年3个月
粉丝:0
关注:0

搜索

 
 

常用链接

随笔档案

MonoRail 学习系列

最新评论

刚注册了个博客,先转载篇,不然博客空空的。^_^。
转载地址:http://www.castleproject.org/monorail/documentation/v1rc2/manual/howitworks.html
MonoRail can be view as another implementation of IHttpHandler. It basically extracts information from the Url and searches for a controller in a binary tree. If found, the controller is created and from that point on, the controller handles the request.



 

The controller is able to select the action (method) to invoke, process the arguments (in the case of SmartDispatcherController) and delegate the execution to it.

When the action returns, the controller checks if a view was selected (and no redirect was issued). If so the ViewEngine is invoked to process the selected view, which renders the content directly to the client's browser.

As MonoRail runs on top of Asp.Net infrastructure (not to be confused with WebForms) it takes advantage of all features like Session management, Application/Request level events and security.

posted @ 2007-10-24 11:29 hailsorm 阅读(21) 评论(2) 编辑