这是基于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.
 
 
 
 
 
 

1.4 KiB

LINGYUN.Abp.Notifications.Application

The application layer module of the notification system, providing application service implementations for the notification system.

Features

  • Notification management service
  • Notification subscription service
  • Notification publishing service
  • Notification query service
  • Notification status management service

Module References

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

Application Services

INotificationAppService

  • GetAsync - Get notification details
  • GetListAsync - Get notification list
  • DeleteAsync - Delete notification
  • MarkReadAsync - Mark notification as read
  • MarkAllReadAsync - Mark all notifications as read

INotificationSubscriptionAppService

  • SubscribeAsync - Subscribe to notification
  • UnSubscribeAsync - Unsubscribe from notification
  • GetAssignableSubscribersAsync - Get list of assignable subscribers
  • GetSubscribedListAsync - Get list of subscribed notifications

Basic Usage

  1. Send notification
await NotificationAppService.PublishAsync(
    name: "YourNotification",
    data: new NotificationData(),
    userIds: new[] { CurrentUser.Id });
  1. Manage notification subscription
await NotificationSubscriptionAppService.SubscribeAsync(
    notificationName: "YourNotification");

More Information