示例#1
0
 public UserValidationApplicationService(IApplicationService applicationService,
                                         IUserContextRepository userContextRepository,
                                         IUserApplicationRepository userFileRepository)
 {
     _applicationService        = applicationService ?? throw new ArgumentNullException(nameof(applicationService));
     _userContextRepository     = userContextRepository ?? throw new ArgumentNullException(nameof(userContextRepository));
     _userApplicationRepository = userFileRepository ?? throw new ArgumentNullException(nameof(userFileRepository));
 }
 public ApplicationRepository(IUnitOfWork unitOfWork,
                              IDateProvider dateProvider,
                              IUserContextRepository userContextRepository,
                              IMapper <ApplicationListItemDbDto, ApplicationListItemDto> listItemMapper)
 {
     _unitOfWork            = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _dateProvider          = dateProvider ?? throw new ArgumentNullException(nameof(dateProvider));
     _userContextRepository = userContextRepository ?? throw new ArgumentNullException(nameof(userContextRepository));
     _listItemMapper        = listItemMapper ?? throw new ArgumentNullException(nameof(listItemMapper));
 }
示例#3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="container"></param>
 /// <param name="mapper"></param>
 public AuthenticationCustomSvc(IServiceProvider container, IMapper mapper) : base(container, mapper)
 {
     _userContext = container.GetService <IUserContextRepository>();
 }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="container"></param>
 /// <param name="mapper"></param>
 public UserService(IServiceProvider container, IMapper mapper) : base(container, mapper)
 {
     _userContext = container.GetService <IUserContextRepository>();
 }
示例#5
0
 private LoginContext()
 {
     userContextRepository = new UserContextRepository();
 }