示例#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;
 }
 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;
 }
 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>();
 }
        //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;
 }
 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>();
 }