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.
1.6 KiB
1.6 KiB
LINGYUN.Abp.Notifications.Core
The core module of the notification system, providing basic functionality and definitions for the notification system.
Features
- Notification definition management
- Notification group definition management
- Extensible notification provider mechanism
- Support for custom notification definition providers
Module References
[DependsOn(typeof(AbpNotificationsCoreModule))]
public class YouProjectModule : AbpModule
{
// other
}
Configuration
{
"Notifications": {
"DeletedNotifications": [], // List of notification definitions to be deleted
"DeletedNotificationGroups": [] // List of notification group definitions to be deleted
}
}
Basic Usage
- Implement custom notification definition provider
public class YourNotificationDefinitionProvider : NotificationDefinitionProvider
{
public override void Define(INotificationDefinitionContext context)
{
// Define notifications
context.Add(
new NotificationDefinition(
name: "YourNotification",
displayName: L("YourNotification"),
description: L("YourNotificationDescription"),
notificationType: NotificationType.Application,
lifetime: NotificationLifetime.Persistent,
allowSubscriptionToClients: true)
);
}
}
- Register notification definition provider
Configure<AbpNotificationsOptions>(options =>
{
options.DefinitionProviders.Add<YourNotificationDefinitionProvider>();
});