カスタム RoleProvider を実装しており、Ninject を使用したいのですが、パラメーターのないコンストラクターの問題に直面しています。これに注射する方法について何か考えはありますか??
public class EFRoleProvider:RoleProvider
{
private readonly IRepository _repository;
// I want to INJECT this GOO here!
public EFRoleProvider()
{
IContextFactory contextFactory = new DbContextFactory<myEntities>();
_repository = new RepositoryBase(contextFactory);
}
}