/// <summary> /// The dispose. /// </summary> /// <param name="disposing"> /// The disposing. /// </param> protected override void Dispose(bool disposing) { if (disposing) { if (this.userManager != null) { this.userManager.Dispose(); this.userManager = null; } if (this.signInManager != null) { this.signInManager.Dispose(); this.signInManager = null; } } base.Dispose(disposing); }
/// <summary> /// Initializes a new instance of the <see cref="BaseAccountController"/> class. /// </summary> /// <param name="userManager"> /// The user manager. /// </param> /// <param name="signInManager"> /// The sign in manager. /// </param> public BaseAccountController(IdentityUserManager userManager, IdentitySignInManager signInManager) { this.UserManager = userManager; this.SignInManager = signInManager; }