Skip to content

Commit

Permalink
Merge pull request #1037 from colinin/task-notification-template
Browse files Browse the repository at this point in the history
fix(tasks): add a task notification template
  • Loading branch information
colinin authored Nov 22, 2024
2 parents 8d3e5b9 + c9913c3 commit 5e7ff6f
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public override void Define(INotificationDefinitionContext context)
allowSubscriptionToClients: true)
.WithProviders(
NotificationProviderNames.SignalR,
NotificationProviderNames.Emailing);
NotificationProviderNames.Emailing)
.WithTemplate(typeof(BackgroundTasksResource));
backgroundTaskGroup.AddNotification(
BackgroundTasksNotificationNames.JobExecuteFailed,
L("Notifications:JobExecuteFailed"),
Expand All @@ -33,7 +34,8 @@ public override void Define(INotificationDefinitionContext context)
allowSubscriptionToClients: true)
.WithProviders(
NotificationProviderNames.SignalR,
NotificationProviderNames.Emailing);
NotificationProviderNames.Emailing)
.WithTemplate(typeof(BackgroundTasksResource));
backgroundTaskGroup.AddNotification(
BackgroundTasksNotificationNames.JobExecuteCompleted,
L("Notifications:JobExecuteCompleted"),
Expand All @@ -44,7 +46,8 @@ public override void Define(INotificationDefinitionContext context)
allowSubscriptionToClients: true)
.WithProviders(
NotificationProviderNames.SignalR,
NotificationProviderNames.Emailing);
NotificationProviderNames.Emailing)
.WithTemplate(typeof(BackgroundTasksResource));
}

protected LocalizableString L(string name)
Expand Down

0 comments on commit 5e7ff6f

Please sign in to comment.