Example #1
0
 /// <summary>
 /// 登录
 /// </summary>
 /// <param name="Accessor"></param>
 /// <param name="RedisService"></param>
 /// <param name="UserManager"></param>
 /// <param name="EmailService"></param>
 /// <param name="CodeManager"></param>
 /// <param name="Cms_SysconfigManager"></param>
 /// <param name="DbContext"></param>
 /// <param name="UserDetailsManager"></param>
 /// <param name="TokenService"></param>
 public LoginManager(IHttpContextAccessor Accessor,
                     IRedisService RedisService,
                     IUserManager UserManager,
                     IEmailService EmailService,
                     ICodeManager CodeManager,
                     ICms_SysconfigManager Cms_SysconfigManager,
                     DbContext DbContext,
                     IUserDetailsManager UserDetailsManager,
                     ITokenService TokenService)
 {
     this.Accessor             = Accessor;
     this.RedisService         = RedisService;
     this.UserManager          = UserManager;
     this.EmailService         = EmailService;
     this.CodeManager          = CodeManager;
     this.Cms_SysconfigManager = Cms_SysconfigManager;
     this.DbContext            = DbContext;
     this.UserDetailsManager   = UserDetailsManager;
     this.TokenService         = TokenService;
 }
Example #2
0
 public UserDetailsController()
 {
     _iuserDetailsManager = DIContainer.Instance.Resolve <IUserDetailsManager>();
 }
 public UserDetailsController(IConfiguration configuration, IMapper mapper, IUserDetailsManager userManger)
 {
     _configuration = configuration;
     _mapper        = mapper;
     _userManger    = userManger;
 }