Exemplo n.º 1
0
 public AccountService(IOptions <JwtOptions> jwtOptions, ILogger <AccountService> logger, ProfanityServiceDbContext context, IMapper mapper)
 {
     _logger             = logger;
     _jwtOptions         = jwtOptions.Value;
     _securityKey        = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(_jwtOptions.SecretKey));
     _signingCredentials = new SigningCredentials(_securityKey, SecurityAlgorithms.HmacSha256);
     _jwtHeader          = new JwtHeader(_signingCredentials);
     _context            = context;
     _mapper             = mapper;
 }
Exemplo n.º 2
0
 public ProfanityWord(ProfanityServiceDbContext context)
 {
     _context = context;
 }