Change type of HttpConfiguration.MessageHandlers from Collection to List or custom Collection

Topics: ASP.NET Web API
Feb 8, 2014 at 5:30 AM
I'd like MessageHandlers to have method AddRange so I could use it next way:
var handlers = container.ResolveAll<DelegatingHandler>();
config.Handlers.AddRange(handlers);
but Collection<T> doesn't have such method.

Will you agree to change it to List<T>, or custom collection i.e. DelegatingHandlerCollection : CollectionBase<DelegatingHandler> by analogy with HttpFilterCollection.
Feb 23, 2014 at 4:50 AM
Any response, please? :)
Coordinator
Feb 24, 2014 at 1:36 AM
Hi Alex, changing the return type of a property is a breaking change. An alternative would be to add an extension method for this type.