Is there any replacement for Global .asax in monorail?

0 views
Skip to first unread message

Kcube

unread,
May 22, 2009, 2:42:25 AM5/22/09
to Castle Project Users
Is there any replacement for Global .asax in monorail?

Jimmy Shimizu

unread,
May 22, 2009, 3:23:58 AM5/22/09
to castle-pro...@googlegroups.com
You can still use a global.asax even if you're using monorail.

Kcube

unread,
May 22, 2009, 3:49:11 AM5/22/09
to Castle Project Users

How can I get monorail UrlInfo details inside Global.asax? Is it
possible to achieve this?

Castle.MonoRail.Framework.UrlInfo}
Action: "Index"
AppVirtualDir: ""
Area: ""
Controller: "Login"
Domain: "localhost"
Extension: "castle"
FullDomain: "localhost"
PathInfo: ""
Port: 1567
Protocol: "http"
Subdomain: null
UrlRaw: "Login/Index.castle"


Kind Regards,
KCube

On May 22, 12:23 pm, Jimmy Shimizu <jimmy.shim...@gmail.com> wrote:
> You can still use a global.asax even if you're using monorail.
>
>
>
> Kcube wrote:
> > Is there any replacement for Global .asax in monorail?- Hide quoted text -
>
> - Show quoted text -

Jimmy Shimizu

unread,
May 22, 2009, 3:56:05 AM5/22/09
to castle-pro...@googlegroups.com
I assume you would only know this on request-basis, since domain,
protocol etc depends on how many bindings you have, and which binding
the visitor accessed your site at. Otherwise, you need to inspect the
configuration of the site.

To get it on request-basis, you can either do it on Initialize() on your
controller, or Session_OnStart() or BeinRequest-event on your
GlobalApplication/global.asax
Reply all
Reply to author
Forward
0 new messages