MvcSiteMapProvider
MvcSiteMapProvider copied to clipboard
Injecting provider into controller
I'm looking at defaulting the page title of a view to the one used in the Mvc.sitemap file. I'm using Autofac in the project, so installed the Autofac extension for the SiteMapProvider and set everything up and the breadcrumbs are still appearing, so far, so good.
However, when I inject ISiteMap or ISiteMapNode into a controller constructor, Autofac complains it cannot find them.
Any suggestions welcomed, and would I better injecting ISiteMap, ISiteMapNode or something else?
Thanks in advance