@@ -17,12 +17,13 @@ public abstract class DomainEvent
|
||||
public Guid EventId { get; set; } = NewId.NextSequentialGuid();
|
||||
|
||||
//是不是延迟消费的事件,需要用定时任务调度
|
||||
public bool IsScheduleEvent { get; set; }=false;
|
||||
public bool IsDelayScheduleEvent => DelaySeconds!=null && DelaySeconds > 0;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 在事件产生多少s后开始消费该事件
|
||||
/// </summary>
|
||||
public int DelaySeconds{ get; set; }
|
||||
public int? DelaySeconds{ get; set; }
|
||||
|
||||
public string CultureInfoName { get; set; } = CultureInfo.CurrentCulture.Name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user