Пример #1
0
 public CustomUserManager(ILocalizationService localizationService, ICustomUserRepository <TUser> customUserRepository, UserManager <TUser> userManager, ICustomRoleManager <TRole> roleManager, IIdentityModel identityModel, IEmailSender emailSender, ILogger <CustomRoleManager <TUser, TRole> > logger, IMapper mapper, IHttpContextAccessor httpContextAccessor) : base(logger, mapper, httpContextAccessor)
 {
     _userManager          = userManager;
     _roleManager          = roleManager;
     _identityModel        = identityModel;
     _emailSender          = emailSender;
     _localizationService  = localizationService;
     _customUserRepository = customUserRepository;
 }
        public AccountController(
            ICustomUserRepository customUserRepository,
            IIdentityServerInteractionService interaction,
            IClientStore clientStore,
            IAuthenticationSchemeProvider schemeProvider,
            IEventService events)
        {
            // if the TestUserStore is not in DI, then we'll just use the global users collection
            // this is where you would plug in your own custom identity management library (e.g. ASP.NET Identity)

            _interaction          = interaction;
            _clientStore          = clientStore;
            _schemeProvider       = schemeProvider;
            _events               = events;
            _customUserRepository = customUserRepository;
        }
 public CustomProfileService(ICustomUserRepository customUserRepository)
 {
     _customUserRepository = customUserRepository;
 }
Пример #4
0
 public UsersController(ICustomUserRepository userRepository)
 {
     this.userRepository = userRepository;
 }
Пример #5
0
 public ResourceOwnerPasswordValidator(ICustomUserRepository customUserRepository)
 {
     _customUserRepository = customUserRepository;
 }