Blame view

netcore/src/Infrastructure/NCC/EventBridge/Attributes/EventMessageAttribute.cs 747 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.Method, AllowMultiple = true)]
      public sealed class EventMessageAttribute : Attribute
      {
          /// <summary>
          /// 构造函数
          /// </summary>
          public EventMessageAttribute()
          {
          }
  
          /// <summary>
          /// 构造函数
          /// </summary>
          /// <param name="eventId"></param>
          public EventMessageAttribute(string eventId)
          {
              EventId = eventId;
          }
  
          /// <summary>
          /// 事件 Id
          /// </summary>
          public string EventId { get; set; }
      }
  }