using NCC.Dependency; using System; namespace NCC.EventBridge { /// /// 事件处理程序特性 /// [SuppressSniffer, AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public sealed class EventHandlerAttribute : Attribute { /// /// 构造函数 /// public EventHandlerAttribute() { } /// /// 构造函数 /// /// public EventHandlerAttribute(string category) { Category = category; } /// /// 分类名 /// public string Category { get; set; } } }