In the new project template for for ASP.NET MVC 5, there are 2 constructors for Account and Manage controllers.
public AccountController()
{
}
public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager)
{
UserManager = userManager;
SignInManager = signInManager;
}
I'm initializing some properties in the constructor and I've been initially confused which one to use. When stepping through the code I see only the first default constructor is ever called.
I'm wondering whether the 2nd controller is only a placeholder for Dependency Injection, which I'm not using currently. Or could Identity ever be calling it in the background for some other purposes when DI is not used? (I'm figuring based on going through the framework, that both UserManager and SignInManager are already built in Startup, so there should be no need to recreate them in the second constructor).