Пример #1
0
 public AccountController(
     UserManager userManager,
     IMultiTenancyConfig multiTenancyConfig,
     IUserEmailer userEmailer,
     RoleManager roleManager,
     TenantManager tenantManager,
     IUnitOfWorkManager unitOfWorkManager,
     ITenancyNameFinder tenancyNameFinder,
     ICacheManager cacheManager,
     IAppNotifier appNotifier,
     IWebUrlService webUrlService,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     IUserLinkManager userLinkManager,
     INotificationSubscriptionManager notificationSubscriptionManager)
 {
     _userManager                     = userManager;
     _multiTenancyConfig              = multiTenancyConfig;
     _userEmailer                     = userEmailer;
     _roleManager                     = roleManager;
     _tenantManager                   = tenantManager;
     _unitOfWorkManager               = unitOfWorkManager;
     _tenancyNameFinder               = tenancyNameFinder;
     _cacheManager                    = cacheManager;
     _webUrlService                   = webUrlService;
     _appNotifier                     = appNotifier;
     _abpLoginResultTypeHelper        = abpLoginResultTypeHelper;
     _userLinkManager                 = userLinkManager;
     _notificationSubscriptionManager = notificationSubscriptionManager;
 }
 public AccountController(
     UserManager userManager,
     IMultiTenancyConfig multiTenancyConfig,
     IUserEmailer userEmailer,
     RoleManager roleManager,
     TenantManager tenantManager,
     IUnitOfWorkManager unitOfWorkManager,
     ITenancyNameFinder tenancyNameFinder,
     ICacheManager cacheManager,
     IAppNotifier appNotifier,
     IWebUrlService webUrlService,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     IUserLinkManager userLinkManager,
     INotificationSubscriptionManager notificationSubscriptionManager)
 {
     _userManager = userManager;
     _multiTenancyConfig = multiTenancyConfig;
     _userEmailer = userEmailer;
     _roleManager = roleManager;
     _tenantManager = tenantManager;
     _unitOfWorkManager = unitOfWorkManager;
     _tenancyNameFinder = tenancyNameFinder;
     _cacheManager = cacheManager;
     _webUrlService = webUrlService;
     _appNotifier = appNotifier;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _userLinkManager = userLinkManager;
     _notificationSubscriptionManager = notificationSubscriptionManager;
 }
Пример #3
0
 public AccountController(
     TenantManager tenantManager,
     UserManager userManager,
     RoleManager roleManager,
     LogInManager logInManager,
     ApplicationSignInManager signInManager,
     IUserEmailer userEmailer,
     IUnitOfWorkManager unitOfWorkManager,
     ITenancyNameFinder tenancyNameFinder,
     IMultiTenancyConfig multiTenancyConfig,
     IAppNotifier appNotifier,
     IWebUrlService webUrlService,
     INotificationSubscriptionManager notificationSubscriptionManager,
     ICacheManager cacheManager
     ) : base(
         tenantManager,
         userManager,
         roleManager,
         logInManager,
         signInManager,
         userEmailer,
         unitOfWorkManager,
         tenancyNameFinder,
         multiTenancyConfig,
         appNotifier,
         webUrlService,
         notificationSubscriptionManager,
         cacheManager)
 {
 }
Пример #4
0
 public AccountControllerBase(
     TenantManager tenantManager,
     UserManager userManager,
     RoleManager roleManager,
     LogInManager logInManager,
     ApplicationSignInManager signInManager,
     IUserEmailer userEmailer,
     IUnitOfWorkManager unitOfWorkManager,
     ITenancyNameFinder tenancyNameFinder,
     IMultiTenancyConfig multiTenancyConfig,
     IAppNotifier appNotifier,
     IWebUrlService webUrlService,
     INotificationSubscriptionManager notificationSubscriptionManager,
     ICacheManager cacheManager
     )
 {
     _tenantManager      = tenantManager;
     _userManager        = userManager;
     _roleManager        = roleManager;
     _unitOfWorkManager  = unitOfWorkManager;
     _tenancyNameFinder  = tenancyNameFinder;
     _multiTenancyConfig = multiTenancyConfig;
     _userEmailer        = userEmailer;
     _logInManager       = logInManager;
     _signInManager      = signInManager;
     _appNotifier        = appNotifier;
     _notificationSubscriptionManager = notificationSubscriptionManager;
     _cacheManager  = cacheManager;
     _webUrlService = webUrlService;
 }
Пример #5
0
 public LayoutController(ISessionAppService sessionAppService, IUserNavigationManager userNavigationManager, ITenancyNameFinder tenancyNameFinder, TenantManager tenantManager, IMultiTenancyConfig multiTenancyConfig, ITenantSettingsAppService tenantSettingsAppService)
 {
     this._sessionAppService        = sessionAppService;
     this._userNavigationManager    = userNavigationManager;
     this._tenancyNameFinder        = tenancyNameFinder;
     this._multiTenancyConfig       = multiTenancyConfig;
     this._tenantManager            = tenantManager;
     this._tenantSettingsAppService = tenantSettingsAppService;
 }
Пример #6
0
 public TenantCustomizationController(
     IAppFolders appFolders,
     TenantManager tenantManager,
     IBinaryObjectManager binaryObjectManager,
     ITenancyNameFinder tenancyNameFinder)
 {
     _tenantManager       = tenantManager;
     _binaryObjectManager = binaryObjectManager;
     _tenancyNameFinder   = tenancyNameFinder;
 }
Пример #7
0
 public CompanyController(
     IAppFolders appFolders,
     TenantManager tenantManager,
     IBinaryTenantManager binaryObjectManager,
     ITenancyNameFinder tenancyNameFinder)
 {
     _tenantManager       = tenantManager;
     _binaryObjectManager = binaryObjectManager;
     _tenancyNameFinder   = tenancyNameFinder;
 }
Пример #8
0
 public AccountController(UserManager userManager, IUserAppService userAppService, IMultiTenancyConfig multiTenancyConfig, IUserEmailer userEmailer, RoleManager roleManager, TenantManager tenantManager, IUnitOfWorkManager unitOfWorkManager, ITenancyNameFinder tenancyNameFinder, ICacheManager cacheManager, IWebUrlService webUrlService, ITenantSettingsAppService tenantSettingsAppService)
 {
     this._userManager              = userManager;
     this._userAppService           = userAppService;
     this._multiTenancyConfig       = multiTenancyConfig;
     this._userEmailer              = userEmailer;
     this._roleManager              = roleManager;
     this._tenantManager            = tenantManager;
     this._unitOfWorkManager        = unitOfWorkManager;
     this._tenancyNameFinder        = tenancyNameFinder;
     this._cacheManager             = cacheManager;
     this._webUrlService            = webUrlService;
     this._tenantSettingsAppService = tenantSettingsAppService;
 }
Пример #9
0
 public AccountController(
     TenantManager tenantManager,
     UserManager userManager,
     RoleManager roleManager,
     IUnitOfWorkManager unitOfWorkManager,
     IMultiTenancyConfig multiTenancyConfig, 
     ITenancyNameFinder tenancyNameFinder)
 {
     _tenantManager = tenantManager;
     _userManager = userManager;
     _roleManager = roleManager;
     _unitOfWorkManager = unitOfWorkManager;
     _multiTenancyConfig = multiTenancyConfig;
     _tenancyNameFinder = tenancyNameFinder;
 }
Пример #10
0
 public LayoutController(
     IPerRequestSessionCache sessionCache,
     IUserNavigationManager userNavigationManager,
     IMultiTenancyConfig multiTenancyConfig,
     ILanguageManager languageManager,
     ITenancyNameFinder tenancyNameFinder,
     IUnitOfWorkManager unitOfWorkManager,
     TenantManager tenantManager)
 {
     _sessionCache          = sessionCache;
     _userNavigationManager = userNavigationManager;
     _multiTenancyConfig    = multiTenancyConfig;
     _languageManager       = languageManager;
     _tenancyNameFinder     = tenancyNameFinder;
     _unitOfWorkManager     = unitOfWorkManager;
     _tenantManager         = tenantManager;
 }
Пример #11
0
 public AccountController(
     UserManager userManager,
     IMultiTenancyConfig multiTenancyConfig,
     IUserEmailer userEmailer,
     RoleManager roleManager,
     TenantManager tenantManager,
     IUnitOfWorkManager unitOfWorkManager,
     ITenancyNameFinder tenancyNameFinder)
 {
     _userManager        = userManager;
     _multiTenancyConfig = multiTenancyConfig;
     _userEmailer        = userEmailer;
     _roleManager        = roleManager;
     _tenantManager      = tenantManager;
     _unitOfWorkManager  = unitOfWorkManager;
     _tenancyNameFinder  = tenancyNameFinder;
 }
Пример #12
0
        public static Tenant GetTenant()
        {
            if (_tenant != null)
            {
                return(_tenant);
            }
            IRepository <Tenant> tenantRepository  = IocManager.Instance.Resolve <IRepository <Tenant> >();
            ITenancyNameFinder   tenancyNameFinder = IocManager.Instance.Resolve <ITenancyNameFinder>();
            string tenancyName = tenancyNameFinder.GetCurrentTenancyNameOrNull();

            if (String.IsNullOrEmpty(tenancyName))
            {
                return(null);
            }
            _tenant = tenantRepository.GetAll().Where(model => model.TenancyName == tenancyName).FirstOrDefault();
            return(_tenant);
        }
Пример #13
0
 public AccountController(
     LogInManager logInManager,
     UserManager userManager,
     IMultiTenancyConfig multiTenancyConfig,
     IUserEmailer userEmailer,
     RoleManager roleManager,
     TenantManager tenantManager,
     IUnitOfWorkManager unitOfWorkManager,
     ITenancyNameFinder tenancyNameFinder,
     ICacheManager cacheManager,
     IAppNotifier appNotifier,
     IWebUrlService webUrlService,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     IUserLinkManager userLinkManager,
     INotificationSubscriptionManager notificationSubscriptionManager,
     SignInManager signInManager,
     IAuthenticationManager authenticationManager,
     ILanguageManager languageManager,
     IUserPolicy userPolicy,
     IRepository <FinanceAccount, long> accountRepository)
 {
     _userManager                     = userManager;
     _multiTenancyConfig              = multiTenancyConfig;
     _userEmailer                     = userEmailer;
     _roleManager                     = roleManager;
     _tenantManager                   = tenantManager;
     _unitOfWorkManager               = unitOfWorkManager;
     _tenancyNameFinder               = tenancyNameFinder;
     _cacheManager                    = cacheManager;
     _webUrlService                   = webUrlService;
     _appNotifier                     = appNotifier;
     _abpLoginResultTypeHelper        = abpLoginResultTypeHelper;
     _userLinkManager                 = userLinkManager;
     _notificationSubscriptionManager = notificationSubscriptionManager;
     _signInManager                   = signInManager;
     _authenticationManager           = authenticationManager;
     _languageManager                 = languageManager;
     _userPolicy        = userPolicy;
     _logInManager      = logInManager;
     _accountRepository = accountRepository;
 }