Esempio n. 1
0
        //private readonly MenuDbContext _db;



        public AuthService(IJWTHasher hasher, IUserService userService, IJWTService jwtService, IErrorService errorService)//, IJWTService jwtService)
        {
            //_db = db;
            _hasher       = hasher;
            _jwtService   = jwtService;
            _userService  = userService;
            _errorService = errorService;
        }
Esempio n. 2
0
        //private static IServiceProvider _serviceProvider;

        //front endpoints



        public PlanitPokerHub(MultiThreadHelper multiThreadHelper,
                              IStringValidator stringValidator, IPlanitPokerService planitPokerService,
                              IPlanitApiHelper apiHealper, IJWTService jwtService, IJWTHasher hasher, IErrorService errorService
                              , IErrorContainer errorContainer)
        {
            _multiThreadHelper  = multiThreadHelper;
            _stringValidator    = stringValidator;
            _planitPokerService = planitPokerService;

            _jwtService     = jwtService;
            _hasher         = hasher;
            _errorService   = errorService;
            _errorContainer = errorContainer;

            _logger = null; //todo

            _apiHealper = apiHealper;
            _apiHealper.InitByHub(this);
        }
Esempio n. 3
0
        //private readonly MenuDbContext _db;


        public UserService(IUserRepository userRepository, IJWTHasher hasher)
        {
            _userRepository = userRepository;
            _hasher         = hasher;
        }
Esempio n. 4
0
 public JWTUserManager(IJWTHasher hasher, IUserService userService)
 {
     //_db = db;
     _hasher      = hasher;
     _userService = userService;
 }