예제 #1
0
 public AuditLogService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _logs = _unitOfWork.Set<AuditLog>();
     _mappingEngine = mappingEngine;
 }
예제 #2
0
 public TitleService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _titles = _unitOfWork.Set<Title>();
     _mappingEngine = mappingEngine;
 }
예제 #3
0
        public AddressController(IUnitOfWork unitOfWork, IAddressService addressService,IApplicationUserManager userManager)
        {
            _unitOfWork = unitOfWork;
            _addressService = addressService;
            _userManager = userManager;

        }
 public ResearchExperienceService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _researchExperiences = _unitOfWork.Set<ResearchExperience>();
     _mappingEngine = mappingEngine;
 }
예제 #5
0
 public EntireEvaluationService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _entireEvaluations = _unitOfWork.Set<EntireEvaluation>();
     _mappingEngine = mappingEngine;
 }
예제 #6
0
 public ManageController(
     IApplicationUserManager userManager,
     IAuthenticationManager authenticationManager)
 {
     _userManager = userManager;
     _authenticationManager = authenticationManager;
 }
예제 #7
0
 public ReferentialTeacherService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _referentialTeachers = _unitOfWork.Set<ReferentialTeacher>();
     _mappingEngine = mappingEngine;
 }
예제 #8
0
 public InterviewService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _interviews = _unitOfWork.Set<Interview>();
     _mappingEngine = mappingEngine;
 }
예제 #9
0
 public CartController(IUnitOfWork unitOfWork,
                       ISaleService saleService,
                       IApplicationUserManager userManager)
 {
     this._saleService = saleService;
     this._unitOfWork  = unitOfWork;
     this._userManager = userManager;
 }
예제 #10
0
 public TaskService(IRepository <Task> repository, IRepository <UserStory> userStoryRepository, IRepository <Project> projectRepository, IRepository <Sprint> sprintRepository, IApplicationUserManager UserManager)
 {
     this.repository          = repository;
     this.userStoryRepository = userStoryRepository;
     this.projectRepository   = projectRepository;
     this.sprintRepository    = sprintRepository;
     this.UserManager         = UserManager;
 }
예제 #11
0
        public LastPagesViewComponent(IPageService pageService, IApplicationUserManager applicationUserManager)
        {
            _pageService = pageService;
            _pageService.CheckArgumentIsNull(nameof(_pageService));

            _applicationUserManager = applicationUserManager;
            _applicationUserManager.CheckArgumentIsNull(nameof(_applicationUserManager));
        }
예제 #12
0
 public SaleController(IUnitOfWork unitOfWork, ISaleService saleService,
                       IApplicationUserManager userManager, IOrderService orderService)
 {
     this._saleService  = saleService;
     this._unitOfWork   = unitOfWork;
     this._userManager  = userManager;
     this._orderService = orderService;
 }
예제 #13
0
 public AppraiserService(IUnitOfWork unitOfWork, ITitleService titleService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _appraisers = _unitOfWork.Set<Appraiser>();
     _titleService = titleService;
     _mappingEngine = mappingEngine;
 }
예제 #14
0
 public SiteStatService(
     IApplicationUserManager userManager,
     IUnitOfWork uow)
 {
     _userManager = userManager ?? throw new ArgumentNullException(nameof(_userManager));
     _uow         = uow ?? throw new ArgumentNullException(nameof(_uow));
     _users       = uow.Set <User>();
 }
예제 #15
0
        //private readonly DbSet<User> _users;

        public SiteStatService(
            IApplicationUserManager userManager,
            IUserRepository repository)
        {
            _userManager = userManager ?? throw new ArgumentNullException(nameof(_userManager));
            _repository  = repository ?? throw new ArgumentNullException(nameof(_repository));
            //_users = repository.Set<User>();
        }
예제 #16
0
        public HomeController(IMessageService messageService, IApplicationUserManager userManager, IArticleService articleService, IApplicantService applicantService)
        {
            _applicantService = applicantService;

            _articleService = articleService;
            _userManager    = userManager;
            _messageService = messageService;
        }
 public EducationalBackgroundService(IUnitOfWork unitOfWork,
     IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _educationalBackgrounds = _unitOfWork.Set<EducationalBackground>();
     _mappingEngine = mappingEngine;
 }
예제 #18
0
 public HomeController(IMessageService messageService, IApplicationUserManager userManager, IArticleService ArticleService, ITeacherService TeacherService, IArticleEvaluationService ArticleEvaluation)
 {
     _TeacherService = TeacherService;
     _ArticleEvaluationService = ArticleEvaluation;
     _ArticleService = ArticleService;
     _userManager = userManager;
     _messageService = messageService;
 }
예제 #19
0
 public HomeController(IProductService productService, IApplicationUserManager userManager, IShoppingCartService shoppingCartService,
                       IUnitOfWork unitOfWork)
 {
     _productService      = productService;
     _shoppingCartService = shoppingCartService;
     _unitOfWork          = unitOfWork;
     _userManager         = userManager;
 }
예제 #20
0
 public PasswordsController(IApplicationUserManager userManager, IEmailSender emailSender, IOptionsSnapshot <IdentitySiteSettings> siteOptions, IPasswordValidator <User> passwordValidator, IApplicationSignInManager signInManager)
 {
     _userManager       = userManager;
     _emailSender       = emailSender;
     _siteOptions       = siteOptions;
     _passwordValidator = passwordValidator;
     _signInManager     = signInManager;
 }
예제 #21
0
 public UserController(IUnitOfWork unitOfWork, IPermissionService permissionService, IApplicationRoleManager roleManager,
                       IApplicationUserManager userManager)
 {
     _unitOfWork        = unitOfWork;
     _userManager       = userManager;
     _roleManager       = roleManager;
     _permissionService = permissionService;
 }
예제 #22
0
 public EducationalBackgroundService(IUnitOfWork unitOfWork,
                                     IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager            = userManager;
     _unitOfWork             = unitOfWork;
     _educationalBackgrounds = _unitOfWork.Set <EducationalBackground>();
     _mappingEngine          = mappingEngine;
 }
예제 #23
0
 public QuestionService(IUnitOfWork unitOfWork, IAnswerOptionService answerOptionService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _questions = _unitOfWork.Set<Question>();
     _mappingEngine = mappingEngine;
     _answerOptionService = answerOptionService;
 }
예제 #24
0
 public AccountController(IApplicationUserManager userManager,
                          IApplicationSignInManager signInManager,
                          IAuthenticationManager authenticationManager)
 {
     _userManager = userManager;
     _signInManager = signInManager;
     _authenticationManager = authenticationManager;
 }
예제 #25
0
 public ProjectTeamMemberService(IRepository <ProjectTeamMember> repository, IRepository <Project> projectRepository, IApplicationUserManager UserManager, IRepository <ApplicationUser> userRepository, IEmailService EmailService)
 {
     this.repository        = repository;
     this.projectRepository = projectRepository;
     this.UserManager       = UserManager;
     this.userRepository    = userRepository;
     this.EmailService      = EmailService;
 }
 public ApplicationSignInManager(SignInManager <ApplicationUser> signInManager, IApplicationUserManager applicationUserManager, IFacebookApiManager facebookApiManager, IPhotosService advertisementItemPhotosUploader, TokenAuthorizationOptions tokenAuthorizationOptions)
 {
     this.signInManager                   = signInManager;
     this.applicationUserManager          = applicationUserManager;
     this.facebookApiManager              = facebookApiManager;
     this.advertisementItemPhotosUploader = advertisementItemPhotosUploader;
     this.tokenAuthorizationOptions       = tokenAuthorizationOptions;
 }
예제 #27
0
 public UserController(IUnitOfWork unitOfWork, IPermissionService permissionService, IApplicationRoleManager roleManager,
     IApplicationUserManager userManager)
 {
     _unitOfWork = unitOfWork;
     _userManager = userManager;
     _roleManager = roleManager;
     _permissionService = permissionService;
 }
예제 #28
0
 public AnswerOptionService(IUnitOfWork unitOfWork, ITitleService titleService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _answerOptions = _unitOfWork.Set<AnswerOption>();
     _titleService = titleService;
     _mappingEngine = mappingEngine;
 }
예제 #29
0
 public ApplicationSignInManager(
     IApplicationUserManager userManager,
     IAuthenticationManager authenticationManager) :
     base((ApplicationUserManager)userManager, authenticationManager)
 {
     _userManager           = userManager;
     _authenticationManager = authenticationManager;
 }
예제 #30
0
 public HomeController(IMessageService messageService, IApplicationUserManager userManager, IArticleService articleService, IApplicantService applicantService)
 {
     _applicantService = applicantService;
    
     _articleService = articleService;
     _userManager = userManager;
     _messageService = messageService;
 }
 public EducationalExperienceService(IUnitOfWork unitOfWork, ITitleService titleService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _titleService = titleService;
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _educationalExperiences = _unitOfWork.Set<EducationalExperience>();
     _mappingEngine = mappingEngine;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FederationRegistrationController"/> class.
 /// </summary>
 /// <param name="userManager">
 /// The user manager.
 /// </param>  
 public FederationRegistrationController(IApplicationUserManager userManager)
 {
     if (logger != null)
     {
         logger.Info("MyProfileController created.");
     }
     this.UserManager = (ApplicationUserManager)userManager;
 }
예제 #33
0
 public AccountController(IApplicationRoleManager roleManager, IApplicationUserManager userManager, IEmailSender emailSender, SignInManager <ApplicationUser> signInManager, ConvertDate convertDate)
 {
     this.roleManager   = roleManager;
     this.userManager   = userManager;
     this.emailSender   = emailSender;
     this.signInManager = signInManager;
     this.convertDate   = convertDate;
 }
예제 #34
0
 public AuthApiController(IApplicationUserManager appUserMgr, IApplicationRoleManager appRoleMgr,
                          AuditTrailService auditSvc, ILogger logger)
 {
     _appUserMgr = appUserMgr;
     _appRoleMgr = appRoleMgr;
     _logger     = logger;
     _auditSvc   = auditSvc;
 }
예제 #35
0
 public MessageService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager   = userManager;
     _unitOfWork    = unitOfWork;
     _conversations = _unitOfWork.Set <Conversation>();
     _messages      = _unitOfWork.Set <Message>();
     _mappingEngine = mappingEngine;
 }
예제 #36
0
 public MailController()
 {
     _mail        = new MailStore <Mail>(MongoUtil <Mail> .GetDefaultConnectionString());
     _userManager =
         new ApplicationUserManager(
             new UserStore <IdentityUser>(MongoUtil <IdentityUser> .GetDefaultConnectionString()));
     _check = new CheckStore <CheckModel>(MongoUtil <Mail> .GetDefaultConnectionString());
 }
 public TeacherInServiceCourseTypeService(IUnitOfWork unitOfWork,ITitleService titleService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _TeacherInServiceCourseTypes = _unitOfWork.Set<TeacherInServiceCourseType>();
     _mappingEngine = mappingEngine;
     _titleService = titleService;
 }
예제 #38
0
 public AccountController(IApplicationUserManager userManager,
                          IApplicationSignInManager signInManager,
                          IAuthenticationManager authenticationManager)
 {
     _userManager           = userManager;
     _signInManager         = signInManager;
     _authenticationManager = authenticationManager;
 }
예제 #39
0
        public SignInService(IApplicationSignInManager applicationSignInManager, IApplicationUserManager applicationUserManager)
        {
            Guard.WhenArgument(applicationSignInManager, "applicationSignInManager").IsNull().Throw();
            Guard.WhenArgument(applicationUserManager, "applicationUserManager").IsNull().Throw();

            this.applicationSignInManager = applicationSignInManager;
            this.applicationUserManager   = applicationUserManager;
        }
예제 #40
0
        public AnswerOptionService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine)
        {
            _userManager   = userManager;
            _unitOfWork    = unitOfWork;
            _answerOptions = _unitOfWork.Set <AnswerOption>();

            _mappingEngine = mappingEngine;
        }
        public virtual ClaimsIdentity GenerateUserIdentity(IApplicationUserManager manager)
        {
            // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
            var userIdentity = manager.CreateIdentity(this, DefaultAuthenticationTypes.ApplicationCookie);

            // Add custom user claims here
            return(userIdentity);
        }
        public TokenValidatorService(IApplicationUserManager usersService, ITokenStoreService tokenStoreService)
        {
            _usersService = usersService;
            _usersService.CheckArgumentIsNull(nameof(usersService));

            _tokenStoreService = tokenStoreService;
            _tokenStoreService.CheckArgumentIsNull(nameof(_tokenStoreService));
        }
예제 #43
0
 public AccountController(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IApplicationSignInManager applicationSignInManager,
                          IAuthenticationManager authenticationManager)
 {
     _unitOfWork            = unitOfWork;
     _userManager           = userManager;
     _signInManager         = applicationSignInManager;
     _authenticationManager = authenticationManager;
 }
예제 #44
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProfileService{TUser}"/> class.
 /// </summary>
 /// <param name="userManager">The user manager.</param>
 /// <param name="claimsFactory">The claims factory.</param>
 /// <param name="logger">The logger.</param>
 public ProfileService(IApplicationUserManager userManager,
                       IUserClaimsPrincipalFactory <User> claimsFactory,
                       ILogger <ProfileService> logger)
 {
     UserManager   = userManager;
     ClaimsFactory = claimsFactory;
     Logger        = logger;
 }
예제 #45
0
 public TrainingCourseService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _unitOfWork = unitOfWork;
     _mappingEngine = mappingEngine;
     _userManager = userManager;
     _courses = _unitOfWork.Set<TrainingCourse>();
   
     _centers = _unitOfWork.Set<TrainingCenter>();
 }
예제 #46
0
 public RoleController(IUnitOfWork unitOfWork, IApplicationRoleManager roleManager, IPermissionService permissionService,
     IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _unitOfWork = unitOfWork;
     _roleManager = roleManager;
     _userManager = userManager;
     _permissionService = permissionService;
     _mappingEngine = mappingEngine;
 }
예제 #47
0
 public AddressService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine, IStateService stateService, ICityService cityService)
 {
     _userManager   = userManager;
     _unitOfWork    = unitOfWork;
     _addresses     = _unitOfWork.Set <Address>();
     _mappingEngine = mappingEngine;
     _cityService   = cityService;
     _stateService  = stateService;
 }
예제 #48
0
 public WorkExperienceService(IUnitOfWork unitOfWork, ICityService cityService, IStateService stateService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _workExperiences = _unitOfWork.Set<WorkExperience>();
     _mappingEngine = mappingEngine;
     _cityService = cityService;
     _stateService = stateService;
 }
예제 #49
0
        public InstitutionService(IUnitOfWork unitOfWork, IApplicationUserManager userManager,
            IMappingEngine mappingEngine)
        {
            _unitOfWork = unitOfWork;
            _userManager = userManager;
            _mappingEngine = mappingEngine;
            _institutions = _unitOfWork.Set<Institution>();

        }
 protected override void Dispose(bool disposing)
 {
     if (disposing && _userManager != null)
     {
         _userManager.Dispose();
         _userManager = null;
     }
     base.Dispose(disposing);
 }
예제 #51
0
        public MessageService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine)
        {
            _userManager = userManager;
            _unitOfWork = unitOfWork;
            _conversations = _unitOfWork.Set<Conversation>();
            _messages = _unitOfWork.Set<Message>();
            _mappingEngine = mappingEngine;

        }
 public ManageController(
     IApplicationUserManager userManager,
     IAuthenticationManager authenticationManager,
     IApplicationSignInManager applicationSignInManager)
 {
     _userManager              = userManager;
     _authenticationManager    = authenticationManager;
     _applicationSignInManager = applicationSignInManager;
 }
예제 #53
0
 public SecurityService(
     ILog logger,
     ISecurityRepository securityRepository,
     IApplicationUserManager userManager)
 {
     _logger             = logger;
     _securityRepository = securityRepository;
     _userManager        = userManager;
 }
 public ApplicationClaimsTransformation(
     IApplicationUserManager userManager,
     IApplicationRoleManager roleManager,
     ILogger <ApplicationClaimsTransformation> logger)
 {
     _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager));
     _roleManager = roleManager ?? throw new ArgumentNullException(nameof(roleManager));
     _logger      = logger ?? throw new ArgumentNullException(nameof(logger));
 }
예제 #55
0
 public AddressService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine, IStateService stateService, ICityService cityService)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _addresses = _unitOfWork.Set<Address>();
     _mappingEngine = mappingEngine;
     _cityService = cityService;
     _stateService = stateService;
 }
 public EducationalBackgroundService(IUnitOfWork unitOfWork, ITitleService titleService,IInstitutionService institutionService,
     IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _educationalBackgrounds = _unitOfWork.Set<EducationalBackground>();
     _mappingEngine = mappingEngine;
     _titleService = titleService;
     _institutionService = institutionService;
 }
예제 #57
0
 public AccountController( IApplicationUserManager userManager, IUnitOfWork unitOfWork,
     IApplicationSignInManager signInManager,
     IAuthenticationManager authenticationManager
    )
 {
     _userManager = userManager;
     _signInManager = signInManager;
     _authenticationManager = authenticationManager;
     _unitOfWork = unitOfWork;
 }
예제 #58
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// </summary>
 /// <param name="userManager">
 /// The user manager.
 /// </param>
 /// <param name="signInManager">
 /// The sign in manager.
 /// </param>
 public AccountController(IApplicationUserManager userManager,
     IApplicationSignInManager signInManager)
 {
     if (logger != null)
     {
         logger.Info("AccountController created.");
     }
     this.UserManager = (ApplicationUserManager)userManager;
     this.SignInManager = (ApplicationSignInManager)signInManager;
 }
예제 #59
0
 public TrainingCenterService(IUnitOfWork unitOfWork, IApplicationUserManager userManager,
     IStateService StateService, ICityService cityService,
     IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _trainingCenters = _unitOfWork.Set<TrainingCenter>();
     _mappingEngine = mappingEngine;
     _cityService = cityService;
     _stateService = StateService;
 }
예제 #60
0
 public ArticleEvaluationService(IAnswerOptionService answerOptionService,
     IQuestionService questionService, IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _answerOptionService = answerOptionService;
     _questionService = questionService;
     _ArticleEvaluations = _unitOfWork.Set<ArticleEvaluation>();
     _mappingEngine = mappingEngine;
     _evaluationQuestions = _unitOfWork.Set<ArticleEvaluationQuestion>();
 }