How would you guys implement this with the new bits? Do you think that a message channel is a good place to do that?
I was thinking of getting the resource type to be executed there and then use reflection to discover the operations implemented by the resource (webInvoke attr)
The resource type doesn't seem to be available in the message channel, the only way that I've found to get any closer to it is by looking at the routes.
var routeData = RouteTable.Routes.GetRouteData(new HttpContextWrapper(HttpContext.Current));
var serviceRoute = routeData.Route as ServiceRoute;
Unfortunately ServiceRoute receives the resource type in the constructor but it doesn't expose it in a property. I could inherit from ServiceRoute to expose the property and create some routing extension methods to add them but... Am I missing sthing?