Class EventSubscriberAttribute
事件订阅的Metadata
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class EventSubscriberAttribute : Attribute
- Inheritance
-
EventSubscriberAttribute
- Inherited Members
- Extension Methods
Constructors
EventSubscriberAttribute()
public EventSubscriberAttribute()
Properties
IsAsync
是否异步执行(非阻塞模式),默认:false
public bool IsAsync { get; set; }
Property Value
Order
执行排序 默认:0
public int Order { get; set; }
Property Value
ThrowIfError
如果发生错误是否抛出异常,将阻塞后续订阅 默认:false
public bool ThrowIfError { get; set; }