Exemplo n.º 1
0
 public PasswordHistoryService(
     IPasswordHistoryRepository passwordHistoryRepository,
     IUserManagerProvider userManagerProvider)
 {
     this._passwordHistoryRepository = passwordHistoryRepository;
     this._userManagerProvider       = userManagerProvider;
 }
 public HomeController(IUserServices userServices, IMapper mapper, IUserManagerProvider userManager, ITweetRepository tweetRepo, ITwitterRepository twitterRepo, IUnitOfWork unitOfWork)
 {
     this.userServices = userServices;
     this.mapper       = mapper;
     this.userManager  = userManager;
     this.tweetRepo    = tweetRepo;
     this.twitterRepo  = twitterRepo;
     this.unitOfWork   = unitOfWork;
 }
Exemplo n.º 3
0
 public HomeController(IMappingProvider mapper,
                       IUserManagerProvider userManager,
                       IMovieService movieService,
                       IExporterProvider exporterProvider,
                       IMemoryCache memoryCache)
 {
     this.mapper           = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this.userManager      = userManager ?? throw new ArgumentNullException(nameof(userManager));
     this.movieService     = movieService ?? throw new ArgumentNullException(nameof(movieService));
     this.exporterProvider = exporterProvider ?? throw new ArgumentNullException(nameof(exporterProvider));
     this.memoryCache      = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache));
 }
 public HomeController(IMappingProvider mapper, ITestService testService,
                       IUserManagerProvider userManager, IQuestionService questionService,
                       ICategoryService categoryService, IUserTestService userTestService,
                       IUserAnswerService answerService)
 {
     this.mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this.testService     = testService ?? throw new ArgumentNullException(nameof(testService));
     this.userManager     = userManager ?? throw new ArgumentNullException(nameof(userManager));
     this.questionService = questionService ?? throw new ArgumentNullException(nameof(questionService));
     this.categoryService = categoryService ?? throw new ArgumentNullException(nameof(categoryService));
     this.userTestService = userTestService ?? throw new ArgumentNullException(nameof(userTestService));
     this.answerService   = answerService ?? throw new ArgumentNullException(nameof(answerService));
 }
Exemplo n.º 5
0
 public UserService(
     IUserManagerProvider userManagerProvider,
     IPasswordHistoryRepository passwordHistoryRepository,
     IApplicationUserRepository applicationUserRepository,
     IGlobalSettingRepository globalSettingRepository,
     IAuthenticationManagerProvider authenticationManagerProvider)
 {
     this.userManagerProvider           = userManagerProvider;
     this.passwordHistoryRepository     = passwordHistoryRepository;
     this.applicationUserRepository     = applicationUserRepository;
     this.globalSettingRepository       = globalSettingRepository;
     this.authenticationManagerProvider = authenticationManagerProvider;
 }
Exemplo n.º 6
0
 public UserService(
     IUserManagerProvider userManagerProvider,
     IRoleManagerProvider roleManagerProvider,
     IAuthenticationManagerProvider authenticationManagerProvider,
     IApplicationUserRepository applicationUserRepository,
     UnityRepository.Interfaces.IPasswordHistoryRepository passwordHistoryRepository,
     UnityRepository.Interfaces.IGlobalSettingRepository globalSettingRepository,
     IManCoRepository manCoRepository,
     ISessionRepository sessionRepository)
 {
     this._userManagerProvider           = userManagerProvider;
     this._roleManagerProvider           = roleManagerProvider;
     this._authenticationManagerProvider = authenticationManagerProvider;
     this._manCoRepository           = manCoRepository;
     this._applicationUserRepository = applicationUserRepository;
     this._passwordHistoryRepository = passwordHistoryRepository;
     this._globalSettingRepository   = globalSettingRepository;
     this._sessionRepository         = sessionRepository;
 }
Exemplo n.º 7
0
        public dynamic GetUserId()
        {
            if (!DapperContext.DapperContextConfig.RegisterUserId)
            {
                return(0);
            }

            if (UserManager != null)
            {
                return(UserManager.GetUserId());
            }

            UserManager = IocManager.Resolve <IUserManagerProvider>();
            if (UserManager == null)
            {
                throw new Exception("Please implement the interface IUserManagerProvider!");
            }

            return(UserManager.GetUserId());
        }
Exemplo n.º 8
0
 public IdentityRoleService(IIdentityRoleRepository identityRoleRepository, IUserManagerProvider userManagerProvider)
 {
     this._identityRoleRepository = identityRoleRepository;
     _userManagerProvider         = userManagerProvider;
 }
Exemplo n.º 9
0
 public AccountController(IUserManagerProvider userManagerProvider)
 {
     _userManagerProvider = userManagerProvider;
 }
 public UserServices(ITweetRepository tweetRepo, IUserManagerProvider userManager)
 {
     this.tweetRepo   = tweetRepo;
     this.userManager = userManager;
 }