public UsersController(IUsersRepository usersRepository, IFacialService facialService, IMapper mapper,
                        IUserRetrievedService userRetrievedService, ILogService logService, IReadOnlyPolicyRegistry <string> policyRegistry, IConfiguration configuration, ILogger <UsersController> logger)
 {
     _usersRepository      = usersRepository;
     _facialService        = facialService;
     _mapper               = mapper;
     _userRetrievedService = userRetrievedService;
     _logService           = logService;
     _policyRegistry       = policyRegistry;
     _configuration        = configuration;
     _baseUri              = _configuration.GetSection("BaseUri").Value;
     _logger               = logger;
     AddUserEndpoint       = _configuration.GetSection("AddUserEndpoint").Value;
 }
示例#2
0
 public UsersRepository(UsersDbContext dbContext, IUserRetrievedService userRetrievedService, IReadOnlyPolicyRegistry <string> policyRegistry)
 {
     _dbContext            = dbContext;
     _userRetrievedService = userRetrievedService;
     _policyRegistry       = policyRegistry;
 }