IEventDataWithInheritableGenericArgument.cs 774 B

1234567891011121314151617181920
  1. namespace Abp.Events.Bus
  2. {
  3. /// <summary>
  4. /// This interface must be implemented by event data classes that
  5. /// has a single generic argument and this argument will be used by inheritance.
  6. ///
  7. /// For example;
  8. /// Assume that Student inherits From Person. When trigger an EntityCreatedEventData{Student},
  9. /// EntityCreatedEventData{Person} is also triggered if EntityCreatedEventData implements
  10. /// this interface.
  11. /// </summary>
  12. public interface IEventDataWithInheritableGenericArgument
  13. {
  14. /// <summary>
  15. /// Gets arguments to create this class since a new instance of this class is created.
  16. /// </summary>
  17. /// <returns>Constructor arguments</returns>
  18. object[] GetConstructorArgs();
  19. }
  20. }