コード例 #1
0
ファイル: RequestSvc.cs プロジェクト: sephiroh/FinalProject
 /// <summary>
 ///
 /// </summary>
 /// <param name="container"></param>
 /// <param name="mapper"></param>
 /// <param name="emailSettings"></param>
 /// <param name="taggbleApplicantsReposity"></param>
 public RequestSvc(IServiceProvider container, IMapper mapper, IOptions <EmailSettings> emailSettings) : base(container, mapper)
 {
     _requestCtxRepository        = container.GetService <IRequestContextRepository>();
     _referenceNumberRepository   = container.GetService <IReferenceNumberRepository>();
     _requestTechnologyRepository = container.GetService <IRequestTechnologyRepository>();
     _emailService               = container.GetService <IEmailService>();
     _userService                = container.GetService <IUserService>();
     _projectService             = container.GetService <IProjectManagementService>();
     _roleService                = container.GetService <IRoleService>();
     _statusRepository           = container.GetService <IStatusRepository>();
     _applicantLevelRepository   = container.GetService <IApplicantLevelRepository>();
     _emailSettings              = emailSettings.Value;
     _taggableApplicantsReposity = container.GetService <ITaggableRepository>();;
     _taggedApplicantRepository  = container.GetService <ITaggedApplicantRepository>();;
 }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dbContext"></param>
 public ApplicantsRepository(MagenicManpowerDBContext dbContext, ITaggableRepository taggbleRefNumbersReposity)
     : base(dbContext)
 {
     _taggbleRefNumbersReposity = taggbleRefNumbersReposity;
 }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="container"></param>
 /// <param name="mapper"></param>
 public ApplicantPoolSvc(IServiceProvider container, IMapper mapper)
     : base(container, mapper)
 {
     _repository = container.GetService <ITaggableRepository>();
 }