Blame view

netcore/src/Infrastructure/NCC/EventBridge/Attributes/EventHandlerAttribute.cs 758 Bytes
de2bd2f9   “wangming”   项目初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  using NCC.Dependency;
  using System;
  
  namespace NCC.EventBridge
  {
      /// <summary>
      /// 事件处理程序特性
      /// </summary>
      [SuppressSniffer, AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
      public sealed class EventHandlerAttribute : Attribute
      {
          /// <summary>
          /// 构造函数
          /// </summary>
          public EventHandlerAttribute()
          {
          }
  
          /// <summary>
          /// 构造函数
          /// </summary>
          /// <param name="category"></param>
          public EventHandlerAttribute(string category)
          {
              Category = category;
          }
  
          /// <summary>
          /// 分类名
          /// </summary>
          public string Category { get; set; }
      }
  }