From c8e56c53b45a880bd973d66a2d8973a9d208f473 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Fri, 8 Jul 2022 16:05:36 +0800 Subject: [PATCH] fix: remove redundant parameter prefixes. --- .../JobExecutedFailedProvider.cs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/aspnet-core/modules/task-management/LINGYUN.Abp.BackgroundTasks.ExceptionHandling/LINGYUN/Abp/BackgroundTasks/ExceptionHandling/JobExecutedFailedProvider.cs b/aspnet-core/modules/task-management/LINGYUN.Abp.BackgroundTasks.ExceptionHandling/LINGYUN/Abp/BackgroundTasks/ExceptionHandling/JobExecutedFailedProvider.cs index cae5b37dc..15928d549 100644 --- a/aspnet-core/modules/task-management/LINGYUN.Abp.BackgroundTasks.ExceptionHandling/LINGYUN/Abp/BackgroundTasks/ExceptionHandling/JobExecutedFailedProvider.cs +++ b/aspnet-core/modules/task-management/LINGYUN.Abp.BackgroundTasks.ExceptionHandling/LINGYUN/Abp/BackgroundTasks/ExceptionHandling/JobExecutedFailedProvider.cs @@ -32,34 +32,33 @@ public class JobExecutedFailedProvider : JobExecutedProvider, ITransientDependen new JobActionParamter(PropertyCulture, L("DisplayName:PropertyCulture"), L("Description:PropertyCulture")), }; - public const string Prefix = "exception."; public const string JobGroup = "ExceptionNotifier"; - public const string PropertyFrom = Prefix + "from"; + public const string PropertyFrom = "from"; /// /// 接收者 /// - public const string PropertyTo = Prefix + "to"; + public const string PropertyTo = "to"; /// /// 必须,邮件主体 /// - public const string PropertySubject = Prefix + "subject"; + public const string PropertySubject = "subject"; /// /// 消息内容, 文本消息时必须 /// - public const string PropertyBody = Prefix + "body"; + public const string PropertyBody = "body"; /// /// 发送模板消息 /// - public const string PropertyTemplate = Prefix + "template"; + public const string PropertyTemplate = "template"; /// /// 可选, 模板消息中的上下文参数 /// - public const string PropertyContext = Prefix + "context"; + public const string PropertyContext = "context"; /// /// 可选, 模板消息中的区域性 /// - public const string PropertyCulture = Prefix + "culture"; + public const string PropertyCulture = "culture"; public ILogger Logger { protected get; set; }