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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.