这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
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.
 
 
 
 
 
 
feijie f60b0b8320 feat(docs): 添加实时通知模块文档 1 year ago
..
LINGYUN/Abp/Notifications upgrade abp framework to 8.2.0 2 years ago
FodyWeavers.xml upgrade(abp): upgrade abp framework to 7.4.0 2 years ago
FodyWeavers.xsd upgrade(abp): upgrade abp framework to 7.4.0 2 years ago
LINGYUN.Abp.Notifications.Core.csproj upgrade abp framework to 8.2.0 2 years ago
README.EN.md feat(docs): 添加实时通知模块文档 1 year ago
README.md feat(docs): 添加实时通知模块文档 1 year ago

README.md

LINGYUN.Abp.Notifications.Core

通知系统的核心模块,提供了通知系统的基础功能和定义。

功能特性

  • 通知定义管理
  • 通知组定义管理
  • 可扩展的通知提供者机制
  • 支持自定义通知定义提供者

模块引用

[DependsOn(typeof(AbpNotificationsCoreModule))]
public class YouProjectModule : AbpModule
{
  // other
}

配置项

{
  "Notifications": {
    "DeletedNotifications": [], // 需要删除的通知定义列表
    "DeletedNotificationGroups": [] // 需要删除的通知组定义列表
  }
}

基本用法

  1. 实现自定义通知定义提供者
public class YourNotificationDefinitionProvider : NotificationDefinitionProvider
{
    public override void Define(INotificationDefinitionContext context)
    {
        // 定义通知
        context.Add(
            new NotificationDefinition(
                name: "YourNotification",
                displayName: L("YourNotification"),
                description: L("YourNotificationDescription"),
                notificationType: NotificationType.Application,
                lifetime: NotificationLifetime.Persistent,
                allowSubscriptionToClients: true)
        );
    }
}
  1. 注册通知定义提供者
Configure<AbpNotificationsOptions>(options =>
{
    options.DefinitionProviders.Add<YourNotificationDefinitionProvider>();
});

更多信息