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 Kcube wrote: > 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 - >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from this group, send email to castle-project-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---