Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I would like to inject IPublishedContent into my implementation of class that depends on it.
public class DocumentDataSource : IDocumentDataSource{
public DocumentDataSource(IPublishedContent publishedContentcontent){ } }
I am using this in my MVC Controller, while hijacking the route.
How do I register IPublishedContent using AutoFac specific for the content I am in?
Because before introducing IPuiblishedContent into contructor my resolver worked.
Now its saying that I cannot resolve IPublishedContent publishedContentcontent
Check out this video: https://www.youtube.com/watch?v=sDQwu_DzYyc
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Injection of IPublishedContent using AutoFac
I would like to inject IPublishedContent into my implementation of class that depends on it.
public class DocumentDataSource : IDocumentDataSource{
public DocumentDataSource(IPublishedContent publishedContentcontent){
}
}
I am using this in my MVC Controller, while hijacking the route.
How do I register IPublishedContent using AutoFac specific for the content I am in?
Because before introducing IPuiblishedContent into contructor my resolver worked.
Now its saying that I cannot resolve IPublishedContent publishedContentcontent
Check out this video: https://www.youtube.com/watch?v=sDQwu_DzYyc
is working on a reply...