Пример #1
0
        /// <summary>
        /// ctor
        /// </summary>
        /// <param name="options"></param>
        /// <param name="logger"></param>
        /// <param name="transaction"></param>
        /// <param name="lockManager"></param>
        /// <param name="userRepo"></param>
        /// <param name="signInTokenRepo"></param>
        /// <param name="roleOfUserRepo"></param>
        /// <param name="userClaimRepo"></param>
        /// <param name="userLoginControlRepo"></param>
        /// <param name="identityService"></param>
        /// <exception cref="IdentityException"></exception>
        public AuthorizationService(
            IOptions <AuthorizationServiceOptions> options,
            ILogger <AuthorizationService> logger,
            ITransaction transaction,
            IDistributedLockManager lockManager,
            UserRepo userRepo,
            SignInTokenRepo signInTokenRepo,
            RoleOfUserRepo roleOfUserRepo,
            UserClaimRepo userClaimRepo,
            UserLoginControlRepo userLoginControlRepo,
            IIdentityService identityService)
        {
            _options     = options.Value;
            _logger      = logger;
            _transaction = transaction;
            _lockManager = lockManager;

            _userRepo             = userRepo;
            _roleOfUserRepo       = roleOfUserRepo;
            _userClaimRepo        = userClaimRepo;
            _userLoginControlRepo = userLoginControlRepo;
            _signInTokenRepo      = signInTokenRepo;

            _identityService = identityService;

            InitializeCredencials();
        }
Пример #2
0
 public IdentityService(ITransaction transaction, UserRepo userRepo, RoleOfUserRepo roleOfUserRepo)
 {
     _userRepo       = userRepo;
     _roleOfUserRepo = roleOfUserRepo;
     _transaction    = transaction;
 }