Browse Source

refactor(notifications): 注释掉不再使用的通知数据映射

pull/1048/head
feijie 1 year ago
parent
commit
10bcb1b4b6
  1. 12
      aspnet-core/tests/LINGYUN.Abp.Notifications.Tests/LINGYUN/Abp/Notifications/FakeNotificationSender.cs

12
aspnet-core/tests/LINGYUN.Abp.Notifications.Tests/LINGYUN/Abp/Notifications/FakeNotificationSender.cs

@ -205,12 +205,12 @@ public class FakeNotificationSender : INotificationSender, ITransientDependency
IEnumerable<UserIdentifier> subscriptionUserIdentifiers) IEnumerable<UserIdentifier> subscriptionUserIdentifiers)
{ {
Logger.LogDebug($"Sending notification with provider {provider.Name}"); Logger.LogDebug($"Sending notification with provider {provider.Name}");
var notifacationDataMapping = Options.NotificationDataMappings // var notifacationDataMapping = Options.NotificationDataMappings
.GetMapItemOrDefault(provider.Name, notificationInfo.Name); // .GetMapItemOrDefault(provider.Name, notificationInfo.Name);
if (notifacationDataMapping != null) // if (notifacationDataMapping != null)
{ // {
notificationInfo.Data = notifacationDataMapping.MappingFunc(notificationInfo.Data); // notificationInfo.Data = notifacationDataMapping.MappingFunc(notificationInfo.Data);
} // }
// 发布 // 发布
await provider.PublishAsync(notificationInfo, subscriptionUserIdentifiers); await provider.PublishAsync(notificationInfo, subscriptionUserIdentifiers);

Loading…
Cancel
Save