// <summary> /// AnmeldungController Konstruktor legt die Repositories an. /// </summary> public AnmeldungController(ApplicationDbContext context, IMapper mapper, MailingHelper mailingHelper) { _schulungRepository = new SchulungRepository(context); _anmeldungRepository = new AnmeldungRepository(context, mapper); this.mailingHelper = mailingHelper; _context = context; }
public AccountController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IMailSenderService mailSender, ViewRender view, IIdentityServerInteractionService interaction, ISmsSender smsSender, ILoggerFactory loggerFactory, IOptions <HostConfiguration> hostConfiguration, ConfigHelper config, ICandidateInfoService candidate, MailingHelper mailingHelper, IUserProfileService profile, ISrfRequestService srf, ISrfEscalationRequestService escalation, IPersistedGrantService persistedGrantService) { this.view = view; this.userManager = userManager; this.signInManager = signInManager; this.mailSender = mailSender; this.smsSender = smsSender; this.hostConfiguration = hostConfiguration.Value; this.interaction = interaction; //this.logger = loggerFactory.CreateLogger<AccountController>(); _config = config; _mailingHelper = mailingHelper; _persistedGrantService = persistedGrantService; _profile = profile; _candidate = candidate; _srf = srf; _escalation = escalation; }
public UserManagementController(IHttpContextAccessor httpContextAccessor, IUserService userService, IMapper mapper, IUserService service, UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, IASPService asp, SignInManager <ApplicationUser> signInManager, FileHelper fileHelper, ConfigHelper config, ExcelHelper excel, IUserHelper userHelper, MailingHelper mail, IOptions <HostConfiguration> hostConfiguration, NotifHelper notifHelper, IHostingEnvironment environment) : base(httpContextAccessor, userService, mapper, service, userHelper) { _asp = asp; _userManager = userManager; _roleManager = roleManager; _fileHelper = fileHelper; _config = config; _hostConfiguration = hostConfiguration.Value; _environment = environment; _signInManager = signInManager; _excel = excel; _notifHelper = notifHelper; }
public EmailSenderJob(IEmailArchieveService emailArchieveService, MailingHelper mailingHelper, ConfigHelper configHelper, CommonHelper commonHelper) { _emailArchieveService = emailArchieveService; _mailing = mailingHelper; _config = configHelper; _common = commonHelper; }
public ManageController(UserManager <IdentityUser> userManager, RoleManager <IdentityRole> roleManager, MailingHelper mailingHelper, ApplicationDbContext _context) { this.userManager = userManager; this.roleManager = roleManager; this.mailingHelper = mailingHelper; this._context = _context; this.InviteRepository = new InviteRepository(_context); }
public EmailsController(IHttpContextAccessor httpContextAccessor, IUserService userService, IMapper mapper, IEmailArchieveService service, IUserHelper userHelper, MailingHelper mailHelper) : base(httpContextAccessor, userService, mapper, service, userHelper) { _mailHelper = mailHelper; _userHelper = userHelper; _email = service; }
public EscalationController( IHttpContextAccessor httpContextAccessor, IUserService userService, IMapper mapper, ISrfRequestService srf, ISrfEscalationRequestService service, IVacancyListService vacancy, ICandidateInfoService candidate, IDepartementService department, IHostingEnvironment env, IServicePackService ssow, IPackageTypeService packageType, ICostCenterService costCenter, MailingHelper mailingHelper, IOptions <HostConfiguration> hostConfiguration, NotifHelper notif, IDepartementSubService departmentSub, IServicePackCategoryService ssowCategory, IJobStageService jobsTage, IUserProfileService profileService, INetworkNumberService network, IAccountNameService account, UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, SignInManager <ApplicationUser> signInManager, FileHelper fileHelper, ConfigHelper config, IUserHelper userHelper) : base(httpContextAccessor, userService, mapper, service, userHelper) { _srf = srf; _vacancy = vacancy; _candidate = candidate; _department = department; _packageType = packageType; _ssow = ssow; _ssowCategory = ssowCategory; _jobStage = jobsTage; _departmentSub = departmentSub; _profileService = profileService; _network = network; _account = account; _env = env; _notif = notif; _hostConfiguration = hostConfiguration.Value; _mailingHelper = mailingHelper; _userHelper = userHelper; _costCenter = costCenter; _userManager = userManager; _roleManager = roleManager; _fileHelper = fileHelper; _config = config; }
public CandidateController( IHttpContextAccessor httpContextAccessor, IUserService userService, IMapper mapper, IVacancyListService vacancy, ICandidateInfoService service, UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, FileHelper fileHelper, ConfigHelper config, IUserProfileService user, IUserProfileService profile, ISrfRequestService srf, MailingHelper mailingHelper, IOptions <HostConfiguration> hostConfiguration, NotifHelper notif, INetworkNumberService network, IDepartementService department, IUserHelper userHelper) : base(httpContextAccessor, userService, mapper, service, userHelper) { _vacancy = vacancy; _user = user; _userManager = userManager; _roleManager = roleManager; _fileHelper = fileHelper; _config = config; _userHelper = userHelper; _profile = profile; _userService = userService; _notif = notif; _hostConfiguration = hostConfiguration.Value; _mailingHelper = mailingHelper; _service = service; _srf = srf; _department = department; _network = network; }
// wird jede Stunde aufgerufen um zu überprüfen, ob noch Schulungen existieren, // deren Organisator nicht benachrichtigt wurde private void DoWork(object state) { using (var scope = scopeFactory.CreateScope()) { ApplicationDbContext _context = scope.ServiceProvider.GetRequiredService <ApplicationDbContext>(); MailingHelper mailingHelper = scope.ServiceProvider.GetRequiredService <MailingHelper>(); SchulungRepository schulungRepository = new SchulungRepository(_context); var ungeprüfteSchulungen = schulungRepository.GetUngeprüfteSchulungen() .Where(s => !s.GeprüftReminderSent); logger.Info("Schulungen zum Überprüfen: " + ungeprüfteSchulungen.Count()); // sende eine Mail für alle diese Schulungen und Speicher, das die Mail gesendet wurde if (ungeprüfteSchulungen.Count() > 0) { var vorstand = Util.getVorstand(_context); foreach (var schulung in ungeprüfteSchulungen) { Task.WaitAll( schulungRepository.SetGeprüftMailSent(schulung.SchulungGUID, true), mailingHelper.GenerateAndSendGeprueftReminderMail(schulung, vorstand) ); } } } }