Hello! I'm using the DDD-type architecture to do a project, in it I have the CrossCutting layer, and on this layer I thought of adding a class library project with Ninject so it does not stay in the presentation part.
I made a few attempts but found nothing that solved the problem ... could you help me?
This was the closest I got to it:
public class CrossCuttingModule : NinjectModule
{
public override void Load()
{
Bind(typeof(IAppService<>)).To(typeof(AppService<>));
Bind<IClienteService>().To<ClienteService>();
Bind<IProdutoService>().To<ProdutoService>();
Bind(typeof(IRepository<>)).To(typeof(Repository<>));
Bind<IProdutoRepository>().To<ProdutoRepository>();
Bind<IClienteRepository>().To<ClienteRepository>();
}
}