So are you talking about doing something like this?
ResponseHandlers = (handlers, endpoint, operation) =>
ObjectFactory.GetInstances<BaseResponseHandler>().Where(x => x.Matches(endpoint, operation)).Each(x => handlers.Add(x));
I'm looking for actual support for convention over configuration, like how Fluent NHibernate has built in conventions and ways to apply conventions, and FubuMVC has the same.
An example is I have a convention that I applied to Fluent NHibernate that says "All classes that inherit from Entity<> are to be considered for mapping to the database". Or "For all entities set the primary key to Id".
So what I would want is a WebApi convention similar to "For every attribute applied to service actions, check to see if a class exists of the attributenameRequestHandler, and then apply it to the request handlers. Do the same for error handlers, etc."