示例#1
0
 public ConvertURLController(IUnitOfWork UW, IEncode encode, IHttpContextAccessor accessor, IjwtService jwtService)
 {
     _UW         = UW;
     _encode     = encode;
     _accessor   = accessor;
     _jwtService = jwtService;
 }
        public AccountController(IApplicationUserManager userManager, IApplicationRoleManager roleManager,
                                 IjwtService jwtService, IRefreshTokenService refreshToken, IOptionsSnapshot <SiteSettings> settings,
                                 IHttpContextAccessor httpContextAccessor)
        {
            _userManager = userManager;
            _userManager.CheckArgumentIsNull(nameof(_userManager));


            _roleManager = roleManager;
            _roleManager.CheckArgumentIsNull(nameof(_roleManager));


            _jwtService = jwtService;
            _userManager.CheckArgumentIsNull(nameof(_userManager));

            _refreshTokenService = refreshToken;
            _userManager.CheckArgumentIsNull(nameof(_refreshTokenService));

            _httpContextAccessor = httpContextAccessor;
            _userManager.CheckArgumentIsNull(nameof(_httpContextAccessor));

            _settings = settings.Value;
            _userManager.CheckArgumentIsNull(nameof(_settings));
        }
示例#3
0
 public UsersApiController(IApplicationUserManager userManager, IjwtService jwtService)
 {
     _userManager = userManager;
     _jwtService  = jwtService;
 }
 public UsersApiController(IApplicationUserManager userManager, IUsersRepository usersRepository, IjwtService jwtService)
 {
     _userManager     = userManager;
     _usersRepository = usersRepository;
     _jwtService      = jwtService;
 }
示例#5
0
 public UsersApiController(IApplicationUserManager userManager, IUsersRepository usersRpository, IjwtService jwtService) : base(userManager, usersRpository, jwtService)
 {
 }