/// <summary>
        /// Initializes a new instance of the <see cref="DbPerTenantConnectionStringResolver"/> class.
        /// </summary>
        public DbPerTenantConnectionStringResolver(
            IAbpStartupConfiguration configuration,
            ICurrentUnitOfWorkProvider currentUnitOfWorkProvider,
            ITenantCache tenantCache)
            : base(configuration)
        {
            _currentUnitOfWorkProvider = currentUnitOfWorkProvider;
            _tenantCache = tenantCache;

            AbpSession = NullAbpSession.Instance;
        }
示例#2
0
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
 }
示例#3
0
 public FriendshipAppService(
     IFriendshipManager friendshipManager,
     IOnlineClientManager <ChatChannel> onlineClientManager,
     IChatCommunicator chatCommunicator,
     ITenantCache tenantCache,
     IChatFeatureChecker chatFeatureChecker,
     IRepository <User, long> userRepository,
     IRepository <Friendship, long> friendshipRepository)
 {
     _friendshipManager    = friendshipManager;
     _onlineClientManager  = onlineClientManager;
     _chatCommunicator     = chatCommunicator;
     _tenantCache          = tenantCache;
     _chatFeatureChecker   = chatFeatureChecker;
     _userRepository       = userRepository;
     _friendshipRepository = friendshipRepository;
 }
 public UploadController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager, IHostingEnvironment env)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _appConfiguration          = env.GetAppConfiguration();
 }
示例#5
0
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     UserManager userManager,
     ICacheManager cacheManager,
     IOptions <JwtBearerOptions> jwtOptions,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     IImpersonationManager impersonationManager,
     IUserLinkManager userLinkManager,
     IAppNotifier appNotifier,
     ISmsSender smsSender,
     IEmailSender emailSender,
     IOptions <IdentityOptions> identityOptions,
     GoogleAuthenticatorProvider googleAuthenticatorProvider,
     IRepository <PERSONALS, string> personalsRepo,
     IRepository <PERSONALS_MEMBER, string> personalsMemberRepo,
     IRepository <MP_UserPersonals> mpUserPersonalsRepo
     )
 {
     _logInManager             = logInManager;
     _tenantCache              = tenantCache;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _configuration            = configuration;
     _userManager              = userManager;
     _cacheManager             = cacheManager;
     _jwtOptions = jwtOptions;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _impersonationManager      = impersonationManager;
     _userLinkManager           = userLinkManager;
     _appNotifier = appNotifier;
     _smsSender   = smsSender;
     _emailSender = emailSender;
     _googleAuthenticatorProvider = googleAuthenticatorProvider;
     _identityOptions             = identityOptions.Value;
     _personalsRepo       = personalsRepo;
     _personalsMemberRepo = personalsMemberRepo;
     _mpUserPersonalsRepo = mpUserPersonalsRepo;
 }
示例#6
0
 public ResourceOwnerPasswordValidator(
     IConfiguration appConfiguration,
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager)
 {
     _appConfiguration          = appConfiguration;
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
 }
示例#7
0
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     TokenAuthConfiguration configuration,
     IImpersonationManager impersonationManager,
     IUserLinkManager userLinkManager,
     IOptions <IdentityOptions> identityOptions,
     IRepository <User, long> userRepository,
     IPasswordHasher <User> passwordHasher)
 {
     _logInManager         = logInManager;
     _tenantCache          = tenantCache;
     _configuration        = configuration;
     _impersonationManager = impersonationManager;
     _userLinkManager      = userLinkManager;
     _userRepository       = userRepository;
     _passwordHasher       = passwordHasher;
     _identityOptions      = identityOptions.Value;
 }
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IUserManager userManager,
     ICacheManager cacheManager,
     IOptions <JwtBearerOptions> jwtOptions,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     IImpersonationManager impersonationManager,
     IUserLinkManager userLinkManager,
     IAppNotifier appNotifier,
     ISmsSender smsSender,
     IEmailSender emailSender,
     IOptions <IdentityOptions> identityOptions,
     GoogleAuthenticatorProvider googleAuthenticatorProvider,
     IRepository <Tenant> tenantRepository,
     IAccountAppService accountAppService,
     IRepository <User, long> userRepository)
 {
     _logInManager             = logInManager;
     _tenantCache              = tenantCache;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _configuration            = configuration;
     _userManager              = userManager;
     _cacheManager             = cacheManager;
     _jwtOptions = jwtOptions;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _impersonationManager      = impersonationManager;
     _userLinkManager           = userLinkManager;
     _appNotifier = appNotifier;
     _smsSender   = smsSender;
     _emailSender = emailSender;
     _googleAuthenticatorProvider = googleAuthenticatorProvider;
     _identityOptions             = identityOptions.Value;
     _tenantRepository            = tenantRepository;
     _accountAppService           = accountAppService;
     _userRepository = userRepository;
 }
示例#9
0
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     //IExternalAuthConfiguration externalAuthConfiguration,
     //IExternalAuthManager externalAuthManager
     //UserRegistrationManager userRegistrationManager
     IRepository <User, long> userRepository)
 {
     _logInManager             = logInManager;
     _tenantCache              = tenantCache;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _configuration            = configuration;
     //_externalAuthConfiguration = externalAuthConfiguration;
     //_externalAuthManager = externalAuthManager;
     //_userRegistrationManager = userRegistrationManager;
     _userRepository = userRepository;
 }
 public ChatMessageManager(
     IFriendshipManager friendshipManager,
     IChatCommunicator chatCommunicator,
     IOnlineClientManager <ChatChannel> onlineClientManager,
     UserManager userManager,
     ITenantCache tenantCache,
     IUserFriendsCache userFriendsCache,
     IRepository <ChatMessage, long> chatMessageRepository,
     IChatFeatureChecker chatFeatureChecker)
 {
     _friendshipManager     = friendshipManager;
     _chatCommunicator      = chatCommunicator;
     _onlineClientManager   = onlineClientManager;
     _userManager           = userManager;
     _tenantCache           = tenantCache;
     _userFriendsCache      = userFriendsCache;
     _chatMessageRepository = chatMessageRepository;
     _chatFeatureChecker    = chatFeatureChecker;
 }
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     IOptions <AppSettings> appSettings)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _appSettings               = appSettings;
     uploadHelper               = new UploadHelper(appSettings);
 }
示例#12
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="logInManager"></param>
 /// <param name="tenantCache"></param>
 /// <param name="abpLoginResultTypeHelper"></param>
 /// <param name="configuration"></param>
 /// <param name="externalAuthConfiguration"></param>
 /// <param name="externalAuthManager"></param>
 /// <param name="userRegistrationManager"></param>
 /// <param name="customerAppService"></param>
 /// <param name="hostingEnv"></param>
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     ICustomerAppService customerAppService, IHostingEnvironment hostingEnv)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _customerAppService        = customerAppService;
     this._hostingEnv           = hostingEnv;
 }
示例#13
0
 public MenusController(
     IMenusAppService menuAppService,
     IUserAppService userAppService,
     INavigationScriptManager navigationScriptManager,
     ITenantCache tenantCache,
     IRepository <User, long> userRepository,
     IJavaScriptMinifier javaScriptMinifier,
     ISessionAppService sessionAppService,
     TenantManager tenantManager,
     ITenantAppService tenantAppService,
     IUnitOfWorkManager unitOfWorkManager)
 {
     _menuAppService          = menuAppService;
     _userRepository          = userRepository;
     _navigationScriptManager = navigationScriptManager;
     _javaScriptMinifier      = javaScriptMinifier;
     _tenantAppService        = tenantAppService;
     _sessionAppService       = sessionAppService;
     _tenantManager           = tenantManager;
     _unitOfWorkManager       = unitOfWorkManager;
 }
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     IDapperRepository <AbpUsersEx, long> userRepository,
     RoleNameAppService roleNameAppService)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _userRepository            = userRepository;
     _roleNameAppService        = roleNameAppService;
 }
 public AccountController(
     TenantManager tenantManager,
     UserManager userManager,
     RoleManager roleManager,
     IUnitOfWorkManager unitOfWorkManager,
     IMultiTenancyConfig multiTenancyConfig,
     LogInManager logInManager,
     ISessionAppService sessionAppService,
     ILanguageManager languageManager,
     ITenantCache tenantCache)
 {
     _tenantManager      = tenantManager;
     _userManager        = userManager;
     _roleManager        = roleManager;
     _unitOfWorkManager  = unitOfWorkManager;
     _multiTenancyConfig = multiTenancyConfig;
     _logInManager       = logInManager;
     _sessionAppService  = sessionAppService;
     _languageManager    = languageManager;
     _tenantCache        = tenantCache;
 }
示例#16
0
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     ShaLoginResultTypeHelper ShaLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     IRepository <Person, Guid> personRepository,
     IRepository <MobileDevice, Guid> mobileDeviceRepository)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _shaLoginResultTypeHelper  = ShaLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _personRepository          = personRepository;
     _mobileDeviceRepository    = mobileDeviceRepository;
 }
示例#17
0
 public AuthorizeControllerBase(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     UserManager userManager,
     ICacheManager cacheManager,
     IOptions <JwtBearerOptions> jwtOptions,
     IExternalAuthManager externalAuthManager,
     IOptions <IdentityOptions> identityOptions)
 {
     LogInManager             = logInManager;
     TenantCache              = tenantCache;
     AbpLoginResultTypeHelper = abpLoginResultTypeHelper;
     Configuration            = configuration;
     UserManager              = userManager;
     CacheManager             = cacheManager;
     JwtOptions          = jwtOptions;
     ExternalAuthManager = externalAuthManager;
     IdentityOptions     = identityOptions.Value;
 }
示例#18
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;
        }
示例#19
0
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     UserManager userManager,
     ICacheManager cacheManager,
     IOptions <JwtBearerOptions> jwtOptions,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     IImpersonationManager impersonationManager,
     IUserLinkManager userLinkManager,
     IAppNotifier appNotifier,
     ISmsSender smsSender,
     IEmailSender emailSender,
     IOptions <IdentityOptions> identityOptions,
     GoogleAuthenticatorProvider googleAuthenticatorProvider,
     IdentityServerTokenGeneratorFacade identityServerTokenGeneratorFacade)
 {
     _logInManager             = logInManager;
     _tenantCache              = tenantCache;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _configuration            = configuration;
     _userManager              = userManager;
     _cacheManager             = cacheManager;
     _jwtOptions = jwtOptions;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _impersonationManager      = impersonationManager;
     _userLinkManager           = userLinkManager;
     _appNotifier = appNotifier;
     _smsSender   = smsSender;
     _emailSender = emailSender;
     _googleAuthenticatorProvider        = googleAuthenticatorProvider;
     _identityOptions                    = identityOptions.Value;
     _identityServerTokenGeneratorFacade = identityServerTokenGeneratorFacade;
 }
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     UserManager userManager,
     TenantManager tenantManager,
     ICryptoService cryptoService)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _userManager               = userManager;
     _tenantManager             = tenantManager;
     _tokenHelper               = new TokenHelper(cryptoService);
 }
示例#21
0
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     AbpUserClaimsPrincipalFactory <User, Role> claimsPrincipalFactory,
     IRepository <User, long> userRepository,
     IRepository <Tenant> tenantRepository)
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _claimsPrincipalFactory    = claimsPrincipalFactory;
     _userRepository            = userRepository;
     _tenantRepository          = tenantRepository;
 }
 public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     IRepository <ApplicationUser, Guid> applicationUserReposatory,
     UserManager userManager,
     IEncryptionDecryptionService encryptionDecryptionService,
     UserRegistrationManager userRegistrationManager)
 {
     _logInManager                = logInManager;
     _tenantCache                 = tenantCache;
     _abpLoginResultTypeHelper    = abpLoginResultTypeHelper;
     _configuration               = configuration;
     _externalAuthConfiguration   = externalAuthConfiguration;
     _externalAuthManager         = externalAuthManager;
     _userRegistrationManager     = userRegistrationManager;
     _applicationUserReposatory   = applicationUserReposatory;
     _userManager                 = userManager;
     _encryptionDecryptionService = encryptionDecryptionService;
 }
 public AccountController(
     UserManager userManager,
     IMultiTenancyConfig multiTenancyConfig,
     TenantManager tenantManager,
     IUnitOfWorkManager unitOfWorkManager,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     LogInManager logInManager,
     SignInManager signInManager,
     UserRegistrationManager userRegistrationManager,
     ISessionAppService sessionAppService,
     ITenantCache tenantCache,
     INotificationPublisher notificationPublisher,
     ILookupAppService lookupAppService,
     ISettingManager settingManager,
     INotificationManager notificationManager,
     IEmailService emailService,
     ITemplateManager templateManager
     )
 {
     _userManager              = userManager;
     _multiTenancyConfig       = multiTenancyConfig;
     _tenantManager            = tenantManager;
     _unitOfWorkManager        = unitOfWorkManager;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _logInManager             = logInManager;
     _signInManager            = signInManager;
     _userRegistrationManager  = userRegistrationManager;
     _sessionAppService        = sessionAppService;
     _tenantCache              = tenantCache;
     _notificationPublisher    = notificationPublisher;
     _lookupAppService         = lookupAppService;
     _settingManager           = settingManager;
     _notificationManager      = notificationManager;
     _emailService             = emailService;
     _templateManager          = templateManager;
 }
示例#24
0
 protected AppUrlServiceBase(IWebUrlService webUrlService, ITenantCache tenantCache)
 {
     WebUrlService = webUrlService;
     TenantCache   = tenantCache;
 }
示例#25
0
 public TenantStore(ITenantCache tenantCache)
 {
     this.tenantCache = tenantCache;
 }
示例#26
0
 public EmailTemplateProvider(IWebUrlService webUrlService, ITenantCache tenantCache)
 {
     _webUrlService    = webUrlService;
     _tenantCache      = tenantCache;
     _defaultTemplates = new ConcurrentDictionary <string, string>();
 }
示例#27
0
 public TenantStore(ITenantCache tenantCache)
 {
     _tenantCache = tenantCache;
 }
示例#28
0
 public WebUrlService(
     IHostingEnvironment hostingEnvironment,
     ITenantCache tenantCache) :
     base(hostingEnvironment, tenantCache)
 {
 }
示例#29
0
 public TenantCacheTests()
 {
     tenantCache      = Resolve <ITenantCache>();
     tenantRepository = Resolve <IRepository <Tenant> >();
 }
示例#30
0
 public TenantCache_Tests()
 {
     _tenantCache = Resolve<ITenantCache>();
     _tenantRepository = Resolve<IRepository<Tenant>>();
 }
示例#31
0
 public AccountAppService(
     UserRegistrationManager userRegistrationManager, IRepository <Menu> menuRepository, ITenantCache tenantCache, LogInManager logInManager, UserManager userManager, IRepository <I18N> repositoryI18N, IPasswordHasher <User> passwordHasher)
 {
     _userRegistrationManager = userRegistrationManager;
     _menuRepository          = menuRepository;
     _userManager             = userManager;
     _repositoryI18N          = repositoryI18N;
     _logInManager            = logInManager;
     _passwordHasher          = passwordHasher;
     _tenantCache             = tenantCache;
 }
 public AccountController(LogInManager logInManager, UserManager userManager, IUserAppService userAppService, RoleManager roleManager, ITenantCache tenantCache, IUserVerifyAppService userVerifyAppService, BusinessCardManage businessCardManage)
 {
     _logInManager          = logInManager;
     LocalizationSourceName = PolyStoneConsts.LocalizationSourceName;
     _userAppService        = userAppService;
     _roleManager           = roleManager;
     _userManager           = userManager;
     _tenantCache           = tenantCache;
     _userVerifyAppService  = userVerifyAppService;
     _businessCardManage    = businessCardManage;
 }