Exemple #1
0
        public AccountController(
            TenantManager tenantManager,
            UserManager userManager,
            RoleManager roleManager,
            IUnitOfWorkManager unitOfWorkManager,
            IMultiTenancyConfig multiTenancyConfig,
            LogInManager logInManager,
            ISessionAppService sessionAppService,
            ILanguageManager languageManager,
            ITenantCache tenantCache,
            ICaptchaManager captchaManager,
            ISettingManager settingManager,
            QQAuthService qqAuthService,
            WeixinAuthService weixinAuthService,
            WeiboAuthService weiboAuthService,
            AlipayAuthService alipayAuthService,
            UserRegistrationManager userRegistrationManager, ICacheManager cacheManager)
        {
            _tenantManager           = tenantManager;
            _userManager             = userManager;
            _roleManager             = roleManager;
            _unitOfWorkManager       = unitOfWorkManager;
            _multiTenancyConfig      = multiTenancyConfig;
            _logInManager            = logInManager;
            _sessionAppService       = sessionAppService;
            _languageManager         = languageManager;
            _tenantCache             = tenantCache;
            _captchaManager          = captchaManager;
            _settingManager          = settingManager;
            _qqAuthService           = qqAuthService;
            _weixinAuthService       = weixinAuthService;
            _weiboAuthService        = weiboAuthService;
            _alipayAuthService       = alipayAuthService;
            _userRegistrationManager = userRegistrationManager;
            _cacheManager            = cacheManager;

            Logger   = NullLogger.Instance;
            EventBus = NullEventBus.Instance;
        }
 /// <summary>
 /// 构造函数
 /// </summary>
 public ThirdPartyLoginForTokenController(
     LogInManager logInManager,
     ICacheManager cacheManager,
     ICaptchaManager captchaManager,
     UserManager userManager,
     ISMSManager smsManager,
     QQAuthService qqAuthService,
     WeixinAuthService weixinAuthService,
     WeiboAuthService weiboAuthService,
     AlipayAuthService alipayAuthService
     )
 {
     _logInManager          = logInManager;
     _cacheManager          = cacheManager;
     _captchaManager        = captchaManager;
     LocalizationSourceName = MFConsts.LocalizationSourceName;
     _smsManager            = smsManager;
     _userManager           = userManager;
     _qqAuthService         = qqAuthService;
     _weixinAuthService     = weixinAuthService;
     _weiboAuthService      = weiboAuthService;
     _alipayAuthService     = alipayAuthService;
 }