I am trying to extend the existing Orchard.blogs module and need to inject another dependency into its constructor.
So, as per Orchard documentation, I created a service IUserRoleService that implements IDependency.
Then, I modified the Orcahrd.Blogs constructor as this -
public BlogPostAdminController(IOrchardServices services, IBlogService blogService, IBlogPostService blogPostService, IUserRoleService userRoleService)
Services = services;
_blogService = blogService;
_blogPostService = blogPostService;
T = NullLocalizer.Instance;
_userRoleService = userRoleService;
However, when I run my solution, I get this error - No constructors on type 'Orchard.Blogs.Services.UserRoleService' can be found with 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper
Am I missing something?