MR SelectAction using new way

1 view
Skip to first unread message

John Simons

unread,
Jul 8, 2010, 11:52:27 PM7/8/10
to castle-pro...@googlegroups.com
I came across the following comment in MR src:
http://github.com/castleproject/Castle.MonoRail/blob/master/src/Castle.MonoRail.Framework/Controller.cs#L1752

Just wondering if anyone remembers this change and if the way forward is to get rid of the old way of doing this in favor of the new way?

Cheers
John

 

Gauthier Segay

unread,
Jul 10, 2010, 4:47:35 AM7/10/10
to Castle Project Development List
Hi John,

adding my 2 cents,

I think this is here to support people who overidded
Controller.SelectMethod, I've almost nothing against removing it
myself but I'm not sure it will suit everybody.

The only problem I have is that actionSelector is not read/write
accessible as protected from controllers, and it's provided from MR
service factory without having any place to switch implementation
according to different contexts.

Since I don't have a simple solution for those relying on overriding
Controller.SelectMethod, I'm not for rushing it's removal, but to work
out a easy migration path.

Providing a way to bypass/replace actionSelector instance
initialization might be a solution.

On Jul 8, 8:52 pm, John Simons <johnsimons...@yahoo.com.au> wrote:
> I came across the following comment in MR src:http://github.com/castleproject/Castle.MonoRail/blob/master/src/Castl...
Reply all
Reply to author
Forward
0 new messages