Example #1
0
 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)
 {
 }
Example #3
0
 public UserRepository(LegionContext context)
     : base(context)
 {
 }
Example #4
0
 public UnitOfWork(LegionContext context)
 {
     Context      = context;
     User         = new UserRepository(context);
     RefreshToken = new RefreshTokenRepository(context);
 }