/// <summary> /// Initializes a new instance of the <see cref="UserProfileService"/> class. /// </summary> /// <param name="logger">Injected Logger Provider.</param> /// <param name="userProfileDelegate">The profile delegate to interact with the DB.</param> /// <param name="userPreferenceDelegate">The preference delegate to interact with the DB.</param> /// <param name="emailDelegate">The email delegate to interact with the DB.</param> /// <param name="emailInviteDelegate">The email invite delegate to interact with the DB.</param> /// <param name="configuration">The configuration service.</param> /// <param name="emailQueueService">The email service to queue emails.</param> /// <param name="legalAgreementDelegate">The terms of service delegate.</param> /// <param name="cryptoDelegate">Injected Crypto delegate.</param> /// <param name="notificationSettingsService">Notification settings delegate.</param> /// <param name="messageVerificationDelegate">The message verification delegate to interact with the DB.</param> /// <param name="patientService">The patient service.</param> public UserProfileService( ILogger <UserProfileService> logger, IUserProfileDelegate userProfileDelegate, IUserPreferenceDelegate userPreferenceDelegate, IEmailDelegate emailDelegate, IMessagingVerificationDelegate emailInviteDelegate, IConfigurationService configuration, IEmailQueueService emailQueueService, ILegalAgreementDelegate legalAgreementDelegate, ICryptoDelegate cryptoDelegate, INotificationSettingsService notificationSettingsService, IMessagingVerificationDelegate messageVerificationDelegate, IPatientService patientService) { this.logger = logger; this.userProfileDelegate = userProfileDelegate; this.userPreferenceDelegate = userPreferenceDelegate; this.emailDelegate = emailDelegate; this.emailInviteDelegate = emailInviteDelegate; this.configurationService = configuration; this.emailQueueService = emailQueueService; this.legalAgreementDelegate = legalAgreementDelegate; this.cryptoDelegate = cryptoDelegate; this.notificationSettingsService = notificationSettingsService; this.messageVerificationDelegate = messageVerificationDelegate; this.patientService = patientService; }
/// <summary> /// Initializes a new instance of the <see cref="UserProfileService"/> class. /// </summary> /// <param name="logger">Injected Logger Provider.</param> /// <param name="patientService">The patient service.</param> /// <param name="userEmailService">The User Email service.</param> /// <param name="userSMSService">The User SMS service.</param> /// <param name="configurationService">The configuration service.</param> /// <param name="emailQueueService">The email service to queue emails.</param> /// <param name="notificationSettingsService">The Notifications Settings service.</param> /// <param name="userProfileDelegate">The profile delegate to interact with the DB.</param> /// <param name="userPreferenceDelegate">The preference delegate to interact with the DB.</param> /// <param name="legalAgreementDelegate">The terms of service delegate.</param> /// <param name="messageVerificationDelegate">The message verification delegate.</param> /// <param name="cryptoDelegate">Injected Crypto delegate.</param> /// <param name="httpContextAccessor">The injected http context accessor provider.</param> public UserProfileService( ILogger <UserProfileService> logger, IPatientService patientService, IUserEmailService userEmailService, IUserSMSService userSMSService, IConfigurationService configurationService, IEmailQueueService emailQueueService, INotificationSettingsService notificationSettingsService, IUserProfileDelegate userProfileDelegate, IUserPreferenceDelegate userPreferenceDelegate, ILegalAgreementDelegate legalAgreementDelegate, IMessagingVerificationDelegate messageVerificationDelegate, ICryptoDelegate cryptoDelegate, IHttpContextAccessor httpContextAccessor) { this.logger = logger; this.patientService = patientService; this.userEmailService = userEmailService; this.userSMSService = userSMSService; this.configurationService = configurationService; this.emailQueueService = emailQueueService; this.notificationSettingsService = notificationSettingsService; this.userProfileDelegate = userProfileDelegate; this.userPreferenceDelegate = userPreferenceDelegate; this.legalAgreementDelegate = legalAgreementDelegate; this.messageVerificationDelegate = messageVerificationDelegate; this.cryptoDelegate = cryptoDelegate; this.httpContextAccessor = httpContextAccessor; }
/// <summary> /// Initializes a new instance of the <see cref="NotifyUpdatedLegalAgreementsJob"/> class. /// </summary> /// <param name="configuration">The configuration to use.</param> /// <param name="logger">The logger to use.</param> /// <param name="applicationSettingsDelegate">The application settings delegate.</param> /// <param name="legalAgreementDelegate">The legal agreement delegate.</param> /// <param name="profileDelegate">The profile delegate.</param> /// <param name="emailService">The email service.</param> /// <param name="dbContext">The db context to use.</param> public NotifyUpdatedLegalAgreementsJob( IConfiguration configuration, ILogger <NotifyUpdatedLegalAgreementsJob> logger, IApplicationSettingsDelegate applicationSettingsDelegate, ILegalAgreementDelegate legalAgreementDelegate, IUserProfileDelegate profileDelegate, IEmailQueueService emailService, GatewayDbContext dbContext) { this.configuration = configuration; this.logger = logger; this.applicationSettingsDelegate = applicationSettingsDelegate; this.legalAgreementDelegate = legalAgreementDelegate; this.profileDelegate = profileDelegate; this.emailService = emailService; this.dbContext = dbContext; this.profilesPageSize = this.configuration.GetValue <int>($"{JobKey}:{ProfilesPageSizeKey}"); this.host = this.configuration.GetValue <string>($"{HostKey}"); }