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