/// <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="userProfileDelegate">The user profile delegate to interact with the DB.</param> /// <param name="betaRequestDelegate">The beta request delegate to interact with the DB.</param> /// <param name="config">The configuration provider.</param> public DashboardService( INoteDelegate noteDelegate, IUserProfileDelegate userProfileDelegate, IBetaRequestDelegate betaRequestDelegate, IConfiguration config) { this.noteDelegate = noteDelegate; this.userProfileDelegate = userProfileDelegate; this.betaRequestDelegate = betaRequestDelegate; this.configuration = config; this.adminConfiguration = new AdminConfiguration(); this.configuration.GetSection("Admin").Bind(this.adminConfiguration); }
/// <summary> /// Initializes a new instance of the <see cref="BetaRequestService"/> class. /// </summary> /// <param name="logger">Injected Logger Provider.</param> /// <param name="betaRequestDelegate">The email delegate to interact with the DB.</param> /// <param name="emailQueueService">The email service to queue emails.</param> public BetaRequestService(ILogger <BetaRequestService> logger, IBetaRequestDelegate betaRequestDelegate, IEmailQueueService emailQueueService) { this.logger = logger; this.betaRequestDelegate = betaRequestDelegate; this.emailQueueService = emailQueueService; }