Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Injecting provider into controller #466

Open
furyd opened this issue Jul 28, 2017 · 0 comments

Comments

@furyd
Copy link

commented Jul 28, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.