Esempio n. 1
0
        /// <summary>
        /// Function constructor
        /// </summary>
        public Function()
        {
            var startupLambda = new StartUpLambda();

            _configuration = startupLambda.GetConfiguration();
            _services      = startupLambda.AddLambdaServices(_configuration);
            _provider      = _services.BuildServiceProvider();
            _context       = _provider.GetRequiredService <jwtContext>();
            _jwtSettings   = _provider.GetService <JwtSettings>();
        }
Esempio n. 2
0
 public JWTService(jwtContext context) => _context = context;