diff --git a/aspnet-core/modules/task-management/LINGYUN.Abp.BackgroundTasks.Notifications/LINGYUN/Abp/BackgroundTasks/Notifications/BackgroundTasksNotificationDefinitionProvider.cs b/aspnet-core/modules/task-management/LINGYUN.Abp.BackgroundTasks.Notifications/LINGYUN/Abp/BackgroundTasks/Notifications/BackgroundTasksNotificationDefinitionProvider.cs index 43ba7873f..c29ae3b41 100644 --- a/aspnet-core/modules/task-management/LINGYUN.Abp.BackgroundTasks.Notifications/LINGYUN/Abp/BackgroundTasks/Notifications/BackgroundTasksNotificationDefinitionProvider.cs +++ b/aspnet-core/modules/task-management/LINGYUN.Abp.BackgroundTasks.Notifications/LINGYUN/Abp/BackgroundTasks/Notifications/BackgroundTasksNotificationDefinitionProvider.cs @@ -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"), @@ -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"), @@ -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)