I have resolved my problem, I have injected the dependencies with this method, but I don't understand very well why it's work...
Now, Identity works fine with my Unity DI
container.RegisterType<AccountController>(new InjectionConstructor());
container.RegisterType<RolesAdminController>(new InjectionConstructor());
container.RegisterType<ManageController>(new InjectionConstructor());
container.RegisterType<UsersAdminController>(new InjectionConstructor());
No comments:
Post a Comment