public JwtController(IGenerateJwtFlow generateJwtFlow,
                             IOptionsMonitor <GenerateJwtOptions> generateJwtOptionsMonitor)
        {
            this.generateJwtFlow = generateJwtFlow ?? throw new ArgumentNullException(nameof(generateJwtFlow));

            // Options pattern: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-3.1.
            generateJwtOptions = generateJwtOptionsMonitor.CurrentValue;
        }
Beispiel #2
0
 public JwtController(IOptionsMonitor <GenerateJwtOptions> generateJwtOptionsMonitor)
 {
     // Options pattern: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-3.1.
     generateJwtOptions = generateJwtOptionsMonitor.CurrentValue;
 }