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

2.1 KiB

LINGYUN.Abp.ExceptionHandling.Notifications

A real-time notification type based on the ABP framework's IExceptionSubscriber interface, used to send exception information to users through real-time notifications.

Features

  • Supports real-time exception notifications
  • Supports multi-tenancy
  • Supports notification templates
  • Supports system-level notifications
  • Integrated with common notification module

Configuration and Usage

Before use, you need to configure AbpExceptionHandlingOptions to define which exceptions need notifications.

    [DependsOn(
        typeof(AbpNotificationsExceptionHandlingModule)
        )]
    public class YouProjectModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            // Customize exceptions to handle
            Configure<AbpExceptionHandlingOptions>(options =>
            {
                // Add exception types that need to be handled
                options.Handlers.Add<AbpException>();
            });
        }
    }

Notification Content

Exception notifications include the following information:

  • header: Exception notification header information
  • footer: Exception notification footer information
  • loglevel: Log level
  • stackTrace: Exception stack trace information

Notification Names

The module uses the following notification names:

  • NotificationsCommonNotificationNames.ExceptionHandling: Exception handling notification name

Notification Template

  • Sender: System
  • Notification Level: Error
  • Multi-tenant Support: Yes

Dependencies

  • AbpExceptionHandlingModule: Base exception handling module
  • AbpNotificationsCommonModule: Common notification module

More

For more information and configuration examples, please refer to the documentation.