Example #1
0
 /// <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="UserProfileController"/> class.
 /// </summary>
 /// <param name="userProfileService">The injected user profile service.</param>
 /// <param name="httpContextAccessor">The injected http context accessor provider.</param>
 /// <param name="userEmailService">The injected user email service.</param>
 /// <param name="userSMSService">The injected user sms service.</param>
 public UserProfileController(
     IUserProfileService userProfileService,
     IHttpContextAccessor httpContextAccessor,
     IUserEmailService userEmailService,
     IUserSMSService userSMSService)
 {
     this.userProfileService  = userProfileService;
     this.httpContextAccessor = httpContextAccessor;
     this.userEmailService    = userEmailService;
     this.userSMSService      = userSMSService;
 }