UserManager.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. using Electric.Domain.Entities.Identity;
  2. using Microsoft.AspNetCore.Identity;
  3. using Microsoft.Extensions.Logging;
  4. using Microsoft.Extensions.Options;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace Electric.Domain.Manager.Identity
  11. {
  12. public class UserManager : UserManager<EleUser>, IDomainService
  13. {
  14. private UserStore _userStore;
  15. public UserManager(UserStore store,
  16. IOptions<IdentityOptions> optionsAccessor,
  17. IPasswordHasher<EleUser> passwordHasher,
  18. IEnumerable<IUserValidator<EleUser>> userValidators,
  19. IEnumerable<IPasswordValidator<EleUser>> passwordValidators,
  20. ILookupNormalizer keyNormalizer,
  21. IdentityErrorDescriber errors,
  22. IServiceProvider services,
  23. ILogger<UserManager<EleUser>> logger
  24. ) :
  25. base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
  26. {
  27. _userStore = store;
  28. }
  29. }
  30. }