MvcSiteMapProvider icon indicating copy to clipboard operation
MvcSiteMapProvider copied to clipboard

Injecting provider into controller

Open furyd opened this issue 7 years ago • 0 comments

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

furyd avatar Jul 28 '17 12:07 furyd