There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?

1

Closed

IRouteProvider should be ISingletonDependency

description

It seems to me that it's unnecessary that they are of type IDependency when the routes provided by them shouldn't change during shell lifetime. DefaultAliasService injects a collection of route providers and this practically means that all route providers
will be instantiated for every request.