WebApi icon indicating copy to clipboard operation
WebApi copied to clipboard

EnableUnqualifiedNameCall not usable if you don't also use MapODataServiceRoute

Open bitsforthought opened this issue 11 years ago • 2 comments

We'd like to use EnableUnqualifiedNameCall() but it is currently not possible in our scenario. It works by setting an internal property on DefaultODataPathHandler, but this only happens in MapODataServiceRoute. We don't use MapODataServiceRoute because we need to initialize the ODataRoute with an instance of a custom class derived from ODataPathRouteConstraint.

I can see two ways to enable this:

  1. Make DefaultODataPathHandler.ResolverSettings public.
  2. Add a new overload of MapODataServiceRoute that takes an ODataPathRouteConstraint parameter.

Any thoughts on which approach is better?

bitsforthought avatar Jun 16 '15 22:06 bitsforthought

You do not need to wait, if you do not mind to use a hack. Can you try using reflections to update the property ResolverSettings

balajilabs avatar Mar 17 '16 03:03 balajilabs

Closing this issue due to inactivity. If this still affects the latest versions of the library, kindly open a new issue.

habbes avatar Mar 01 '22 07:03 habbes