You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
882 B
30 lines
882 B
3 years ago
|
using Volo.Abp.Collections;
|
||
|
|
||
|
namespace Sanhe.Abp.Notifications;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 通知选项
|
||
|
/// </summary>
|
||
|
public class AbpNotificationsOptions
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 自定义通知集合
|
||
|
/// </summary>
|
||
|
public ITypeList<INotificationDefinitionProvider> DefinitionProviders { get; }
|
||
|
/// <summary>
|
||
|
/// 发布者集合
|
||
|
/// </summary>
|
||
|
public ITypeList<INotificationPublishProvider> PublishProviders { get; }
|
||
|
/// <summary>
|
||
|
/// 可以自定义某个通知的格式
|
||
|
/// </summary>
|
||
|
public NotificationDataMappingDictionary NotificationDataMappings { get; }
|
||
|
|
||
|
public AbpNotificationsOptions()
|
||
|
{
|
||
|
PublishProviders = new TypeList<INotificationPublishProvider>();
|
||
|
DefinitionProviders = new TypeList<INotificationDefinitionProvider>();
|
||
|
NotificationDataMappings = new NotificationDataMappingDictionary();
|
||
|
}
|
||
|
}
|