Hi Lee,

if that's fit the purpose, I proposed some enhancements to a nearby (I
think) codebase:

http://support.castleproject.org/projects/CONTRIB/issues/view/CONTRIB-ISSUE-113

maybe this change (just doc and minor refactor) can be part of the
dispatch in some manner? (and open-ended wiring / serializer with a
container)

On Jan 13, 2:26 pm, Lee Henson <[email protected]> wrote:
> Hi
>
> I've just finished tweaking the rest and codegenerator projects to
> support conneg on file extensions.
>
> CodeGenerator changes
> =================
>
> - if you are using the RestRoutes attribute to generate routes for
> your RestController, instead of:
>
> /path/to/resource
>
> they will now be suffixed with:
>
> /path/to/resource.[format]
>
> Rest changes
> ==========
>
> - RestfulRoute uses the dot pattern changes proposed 
> herehttp://using.castleproject.org/display/MR/Routing+tips
> - added overrideable GetControllerBridgeForAction to RestController
> for supplying your own IControllerBridge
> - ControllerBridge is all virtual to allow you to base a customization
> on it
> - RoutingAwareControllerBridge added which attempts to look for a
> format on the matched route
>
> e.g. in my RestController : Castle.MonoRail.Rest.RestController I've
> added:
>
> protected override IControllerBridge GetControllerBridgeForAction
> (string action)
> {
>     return new RoutingAwareControllerBridge(this, action);
>
> }
>
> Any objections before I apply it? It should be backwards compatible.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to