public UserService(LegionContext context, UserManager <User> userManager, IOptions <AppSettings> appSettings, TokenValidationParameters tokenValidationParameters)
 {
     _appSettings = appSettings.Value;
     _userManager = userManager;
     _context     = context;
     _unitOfWork  = new UnitOfWork(context);
     _tokenValidationParameters = tokenValidationParameters;
 }
 public RefreshTokenRepository(LegionContext context)
     : base(context)
 {
 }
Exemple #3
0
 public UserRepository(LegionContext context)
     : base(context)
 {
 }
Exemple #4
0
 public UnitOfWork(LegionContext context)
 {
     Context      = context;
     User         = new UserRepository(context);
     RefreshToken = new RefreshTokenRepository(context);
 }