Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Injecting provider into controller #466
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