This is my controller constructor:
public PostCategoryController(ICategorizationRepository<PostCategory> categorizationRepository,
IContentRepository<Post> repository, PostUtilityService postUtilityService)
{
_repository = repository;
_categorizationRepository = categorizationRepository;
_postUtilityService = postUtilityService;
}
How does one register the implementation for PostUtilityService with Autofac? This service has no interface, it’s just a class performing some actions.
I want to use the Register method or overload that is the simplest or the best performance-wise.
Use
AsSelfextension method.