using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Volo.Abp.EventBus; using Volo.Abp; namespace JiShe.CollectBus.Common.Attributes { [AttributeUsage(AttributeTargets.Class, Inherited = false)] public class TopicNameAttribute : Attribute { public virtual string Name { get; } public TopicNameAttribute(string name) { this.Name = Check.NotNullOrWhiteSpace(name, nameof(name)); } public string GetName(Type eventType) => this.Name; } }