/// <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>(); }
public JWTService(jwtContext context) => _context = context;