IAsyncEventHandlerOfTEventData.cs 612 B

1234567891011121314151617
  1. using System.Threading.Tasks;
  2. namespace Abp.Events.Bus.Handlers
  3. {
  4. /// <summary>
  5. /// Defines an interface of a class that handles events asynchrounously of type <see cref="IAsyncEventHandler{TEventData}"/>.
  6. /// </summary>
  7. /// <typeparam name="TEventData">Event type to handle</typeparam>
  8. public interface IAsyncEventHandler<in TEventData> : IEventHandler
  9. {
  10. /// <summary>
  11. /// Handler handles the event by implementing this method.
  12. /// </summary>
  13. /// <param name="eventData">Event data</param>
  14. Task HandleEventAsync(TEventData eventData);
  15. }
  16. }