Refactored event classes.

pull/216/head
Halil İbrahim Kalkan 8 years ago
parent c44975d61e
commit 4b42cc1b6f

@ -8,4 +8,17 @@ namespace Volo.Abp.EventBus.Handlers
{
}
/// <summary>
/// Defines an interface of a class that handles events of type <see cref="IEventHandler{TEventData}"/>.
/// </summary>
/// <typeparam name="TEventData">Event type to handle</typeparam>
public interface IEventHandler<in TEventData> : IEventHandler
{
/// <summary>
/// Handler handles the event by implementing this method.
/// </summary>
/// <param name="eventData">Event data</param>
void HandleEvent(TEventData eventData);
}
}

@ -1,15 +0,0 @@
namespace Volo.Abp.EventBus.Handlers
{
/// <summary>
/// Defines an interface of a class that handles events of type <see cref="IEventHandler{TEventData}"/>.
/// </summary>
/// <typeparam name="TEventData">Event type to handle</typeparam>
public interface IEventHandler<in TEventData> : IEventHandler
{
/// <summary>
/// Handler handles the event by implementing this method.
/// </summary>
/// <param name="eventData">Event data</param>
void HandleEvent(TEventData eventData);
}
}

@ -15,7 +15,7 @@ namespace Volo.Abp.EventBus.Handlers.Internals
/// <summary>
/// Function to handle the event.
/// </summary>
public Func<TEventData, Task> Action { get; private set; }
public Func<TEventData, Task> Action { get; }
/// <summary>
/// Creates a new instance of <see cref="AsyncActionEventHandler{TEventData}"/>.

Loading…
Cancel
Save