/// <summary>
 /// Initializes a new instance of the <see cref="NotificationSettingsService"/> class.
 /// </summary>
 /// <param name="logger">The injected logger provider.</param>
 /// <param name="jobClient">The JobScheduler queue client.</param>
 /// <param name="notificationSettingsDelegate">Notification Settings delegate to be used.</param>
 /// <param name="resourceDelegateDelegate">The injected db user delegate delegate.</param>
 public NotificationSettingsService(
     ILogger <NotificationSettingsService> logger,
     IBackgroundJobClient jobClient,
     INotificationSettingsDelegate notificationSettingsDelegate,
     IResourceDelegateDelegate resourceDelegateDelegate)
 {
     this.logger    = logger;
     this.jobClient = jobClient;
     this.notificationSettingsDelegate = notificationSettingsDelegate;
     this.resourceDelegateDelegate     = resourceDelegateDelegate;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FhirResourceDelegateAuthorizationHandler"/> class.
 /// </summary>
 /// <param name="logger">the injected logger.</param>
 /// <param name="configuration">The Configuration to use.</param>
 /// <param name="httpContextAccessor">The HTTP Context accessor.</param>
 /// <param name="patientService">The injected Patient service.</param>
 /// <param name="resourceDelegateDelegate">The ResourceDelegate delegate to interact with the DB.</param>
 public FhirResourceDelegateAuthorizationHandler(
     ILogger <FhirResourceDelegateAuthorizationHandler> logger,
     IConfiguration configuration,
     IHttpContextAccessor httpContextAccessor,
     IPatientService patientService,
     IResourceDelegateDelegate resourceDelegateDelegate)
     : base(logger, httpContextAccessor)
 {
     this.logger = logger;
     this.resourceDelegateDelegate = resourceDelegateDelegate;
     this.patientService           = patientService;
     this.maxDependentAge          = configuration.GetSection("Authorization").GetValue <int?>("MaxDependentAge");
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DashboardService"/> class.
 /// </summary>
 /// <param name="noteDelegate">The note delegate to interact with the DB.</param>
 /// <param name="dependentDelegate">The dependent delegate to interact with the DB.</param>
 /// <param name="userProfileDelegate">The user profile delegate to interact with the DB.</param>
 /// <param name="config">The configuration provider.</param>
 public DashboardService(
     INoteDelegate noteDelegate,
     IResourceDelegateDelegate dependentDelegate,
     IUserProfileDelegate userProfileDelegate,
     IConfiguration config)
 {
     this.noteDelegate        = noteDelegate;
     this.dependentDelegate   = dependentDelegate;
     this.userProfileDelegate = userProfileDelegate;
     this.configuration       = config;
     this.adminConfiguration  = new AdminConfiguration();
     this.configuration.GetSection("Admin").Bind(this.adminConfiguration);
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DependentService"/> class.
 /// </summary>
 /// <param name="logger">Injected Logger Provider.</param>
 /// <param name="userProfileDelegate">The profile delegate to interact with the DB.</param>
 /// <param name="patientService">The injected patient registry provider.</param>
 /// <param name="notificationSettingsService">Notification settings service.</param>
 /// <param name="resourceDelegateDelegate">The ResourceDelegate delegate to interact with the DB.</param>
 /// <param name="configuration">The configuration service.</param>
 public DependentService(
     ILogger <DependentService> logger,
     IUserProfileDelegate userProfileDelegate,
     IPatientService patientService,
     INotificationSettingsService notificationSettingsService,
     IResourceDelegateDelegate resourceDelegateDelegate,
     IConfigurationService configuration)
 {
     this.logger                      = logger;
     this.patientService              = patientService;
     this.resourceDelegateDelegate    = resourceDelegateDelegate;
     this.notificationSettingsService = notificationSettingsService;
     this.userProfileDelegate         = userProfileDelegate;
     this.configurationService        = configuration;
 }