using System; using Abp.Domain.Entities; namespace Abp.Events.Bus.Entities { /// /// Used to pass data for an event that is related to with an object. /// /// Entity type [Serializable] public class EntityEventData : EventData , IEventDataWithInheritableGenericArgument { /// /// Related entity with this event. /// public TEntity Entity { get; private set; } /// /// Constructor. /// /// Related entity with this event public EntityEventData(TEntity entity) { Entity = entity; } public virtual object[] GetConstructorArgs() { return new object[] { Entity }; } } }