public NotificationJob( IEmployerAlertSummaryEmailService employerAlertsEmailService, IProviderAlertSummaryEmailService providerAlertsEmailService, ISendingEmployerTransferRequestEmailService sendingEmployerTransferRequestEmailService, INotificationsApi notificationsApi, ILog logger, CommitmentNotificationConfiguration config) { _employerAlertsEmailService = employerAlertsEmailService; _providerAlertsEmailService = providerAlertsEmailService; _sendingEmployerTransferRequestEmailService = sendingEmployerTransferRequestEmailService; _notificationsApi = notificationsApi; _logger = logger; _config = config; }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='gradeChangedCommand'> /// </param> /// <param name='lang'> /// </param> public static void GradeChanged(this INotificationsApi operations, LMSApplicationCoreCommandsNotiificationsGradeChangedCommand gradeChangedCommand, string lang) { operations.GradeChangedAsync(gradeChangedCommand, lang).GetAwaiter().GetResult(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='courseId'> /// </param> /// <param name='isSpecificAssignees'> /// </param> /// <param name='assesssmentId'> /// </param> /// <param name='learnersList'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task InClassActivityAssignedAsync(this INotificationsApi operations, int courseId, bool isSpecificAssignees, string assesssmentId, IList <int?> learnersList, string lang, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.InClassActivityAssignedWithHttpMessagesAsync(courseId, isSpecificAssignees, assesssmentId, learnersList, lang, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='courseId'> /// </param> /// <param name='isSpecificAssignees'> /// </param> /// <param name='assesssmentId'> /// </param> /// <param name='learnersList'> /// </param> /// <param name='lang'> /// </param> public static void InClassActivityAssigned(this INotificationsApi operations, int courseId, bool isSpecificAssignees, string assesssmentId, IList <int?> learnersList, string lang) { operations.InClassActivityAssignedAsync(courseId, isSpecificAssignees, assesssmentId, learnersList, lang).GetAwaiter().GetResult(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='courseId'> /// </param> /// <param name='quizId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task QuizPublishedAsync(this INotificationsApi operations, int courseId, string quizId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.QuizPublishedWithHttpMessagesAsync(courseId, quizId, lang, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='courseId'> /// </param> /// <param name='quizId'> /// </param> /// <param name='lang'> /// </param> public static void QuizPublished(this INotificationsApi operations, int courseId, string quizId, string lang) { operations.QuizPublishedAsync(courseId, quizId, lang).GetAwaiter().GetResult(); }
public SendEmailHandler(INotificationsApi notificationsApi, IEMailTemplateQueryRepository eMailTemplateQueryRepository, ILogger <SendEmailHandler> logger) { _notificationsApi = notificationsApi; _eMailTemplateQueryRepository = eMailTemplateQueryRepository; _logger = logger; }
public BackgroundNotificationService(ILog logger, INotificationsApi notificationsApi) { _logger = logger; _notificationsApi = notificationsApi; }
protected NotificationApiEmailService(ILogger <NotificationApiEmailService> logger, IEmailTemplateClient emailTemplateClient, INotificationsApi notificationsApi) { _logger = logger; _emailTemplateClient = emailTemplateClient; _notificationsApi = notificationsApi; }