public LogoutController(IIdentityServerInteractionService interaction, IPersistedGrantService persistedGrantService, IAuthUserManager authUserManager, IOptions <AuthAppSettings> appSettings) { this.interaction = interaction; this.persistedGrantService = persistedGrantService; this.authUserManager = authUserManager; this.appSettings = appSettings.Value; }
public AccountController(IAuthUserManager authUserManager, ILogger <AccountController> logger, IOptions <AuthAppSettings> appSettings) { this.appSettings = appSettings.Value; if (this.appSettings == null) { throw new ArgumentNullException("App settings cannot be null"); } this.authUserManager = authUserManager; this.log = logger; }