Hi,
properties (_RouteTemplate_, _Defaults_, _Constraints_, _DataTokens_ and _Handler_) of the __GenerationRoute__ from System.Web.Http.Routing should return the same values as innerRoute. The __GenerationRoute__ from System.Web.Mvc.Routing works as expected.
Can you fix it?
Thank you!
Dusan
Comments: Hi, thank you for your help! Unfortunately I can't rely on routes that implement IReadOnlyCollection<T>. In WebAPI it might be wrapped by HttpWebRoute which does not implement the same interface. And similar situation may occur in MVC as well. For example when routes are wrapped by proxies generated by [glimpse](http://getglimpse.com/). It would be nice if I could someway hook into RouteCollection.Add and HttpRouteCollection.Add methods. Dusan
properties (_RouteTemplate_, _Defaults_, _Constraints_, _DataTokens_ and _Handler_) of the __GenerationRoute__ from System.Web.Http.Routing should return the same values as innerRoute. The __GenerationRoute__ from System.Web.Mvc.Routing works as expected.
Can you fix it?
Thank you!
Dusan
Comments: Hi, thank you for your help! Unfortunately I can't rely on routes that implement IReadOnlyCollection<T>. In WebAPI it might be wrapped by HttpWebRoute which does not implement the same interface. And similar situation may occur in MVC as well. For example when routes are wrapped by proxies generated by [glimpse](http://getglimpse.com/). It would be nice if I could someway hook into RouteCollection.Add and HttpRouteCollection.Add methods. Dusan