/// <summary> /// 从事件管理中移除事件 /// </summary> /// <param name="event"></param> public void RemoveEvent(DomainEvent @event) { Events.Remove(@event); }
/// <summary> /// 向事件管道添加事件 /// </summary> /// <param name="event"></param> public void AddEvent(DomainEvent @event) { Events.Add(@event); }