Hi
I understand that by applying a type of a service in the constructor of AppHostBase it is registering all the Services in this assembly (constructor injection).
I have a separate assembly/project with all my Repositories inside. These needs the IDbConnectionFactory injected in their constructor. Is there a way to register all of these repositories in one go. Now I do the following in the Configure method of the AppHostBase:
container.RegisterAs<Repositories.CampaignRepository, Repositories.Interfaces.ICampaignRepository>();
container.RegisterAs<Repositories.SearchRepository, Repositories.Interfaces.ISearchRepository>();
container.RegisterAs<Repositories.ClientRepository, Repositories.Interfaces.IClientRepository>();
Thanks for your advice!