Exemplo n.º 1
0
 public AccountService(IAddUserFactory addUserFactory, ILogger <AccountService> logger,
                       IChangePasswordToUserFactory changePasswordToUserFactory,
                       IGetPoliciesFromProjectFactory getPoliciesFromProjectFactory,
                       IGetAllProjectFactory getAllProjectFactory,
                       IUserRepository userRepository, IHashingService hashingService)
 {
     _getAllProjectFactory          = getAllProjectFactory;
     _getPoliciesFromProjectFactory = getPoliciesFromProjectFactory;
     _addUserFactory = addUserFactory;
     _changePasswordToUserFactory = changePasswordToUserFactory;
     _userRepository = userRepository;
     _hashingService = hashingService;
 }
Exemplo n.º 2
0
 public TokenService(IUserRepository userRepository, IProjectRepository projectRepository,
                     IJwtLibraryWrapperService jwtLibraryWrapperService, ILogger <TokenService> logger,
                     IGetPoliciesFromProjectFactory getPoliciesFromProjectFactory, IHashingService hashingService,
                     IGetUserCustomDataListFromProjectFactory getUserCustomDataListFromProjectFactory,
                     IGetUserPolicyConfigurationOrDefaultFromProjectFactory userConfigurationOrDefaultFromProjectFactory)
 {
     _getUserCustomDataListFromProjectFactory = getUserCustomDataListFromProjectFactory;
     _getPoliciesFromProjectFactory           = getPoliciesFromProjectFactory;
     _userRepository           = userRepository;
     _projectRepository        = projectRepository;
     _jwtLibraryWrapperService = jwtLibraryWrapperService;
     _logger         = logger;
     _hashingService = hashingService;
     this.userConfigurationOrDefaultFromProjectFactory = userConfigurationOrDefaultFromProjectFactory;
 }