4

Closed

Make `IActionHttpMethodProvider` public

description

In MVC, HTTP method constraints inherit the ActionMethodSelectorAttribute, which is a public class 3rd party libraries can inherit from to implement their own versions of the constraints. This is needed in AttributeRouting, for example.

In WebAPI, the equivalent is the IActionHttpMethodProvider interface which is marked as internal right now.

Is there a reason to keep it internal?
Closed Jun 4 at 12:27 AM by kamehrot

comments

kayub wrote Jun 15, 2012 at 3:43 AM

It turns out the issue with AttributeRouting was not due to this particular problem... however, if you want to keep it consistent with MVC, I'd still keep this open.

kayub wrote Jun 20, 2012 at 5:33 PM

Alright, it could be causing a 405 "The requested resource does not support http method 'X'" error:

https://github.com/mccalltd/AttributeRouting/issues/83#issuecomment-6461225

mccalltd wrote Jun 20, 2012 at 11:56 PM

This IS an issue with AttributeRouting. Would be great if the interface were public.

HenrikN wrote Jun 29, 2012 at 11:13 PM

mccalltd wrote Jul 31, 2012 at 12:13 AM

Henrik, any word on when this fix might get into the nightly builds? Or will I have to wait for the RTM? I've had a number of languishing issues with this, and I can't really fix them (I'm the owner of AttributeRouting) until there's something available publicly. Thanks for any feedback you can give.

HenrikN wrote Jul 31, 2012 at 2:38 PM

Tim,

We are working on setting up some new semantic versioning with our NuGet packages which will make it easier to update using previews in the future. Once this is done then we will switch the nightly builds back to main again. This shouldn't take too long.

Henrik