From 4b42cc1b6f8b37dd681c311ed537f11cc1e95bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Tue, 20 Feb 2018 09:38:30 +0300 Subject: [PATCH] Refactored event classes. --- ...ndlerOfTEventData.cs => IAsyncEventHandler.cs} | 0 .../Volo/Abp/EventBus/Handlers/IEventHandler.cs | 13 +++++++++++++ .../Handlers/IEventHandlerOfTEventData.cs | 15 --------------- .../Handlers/Internals/AsyncActionEventHandler.cs | 2 +- 4 files changed, 14 insertions(+), 16 deletions(-) rename src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/{IAsyncEventHandlerOfTEventData.cs => IAsyncEventHandler.cs} (100%) delete mode 100644 src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IEventHandlerOfTEventData.cs diff --git a/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IAsyncEventHandlerOfTEventData.cs b/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IAsyncEventHandler.cs similarity index 100% rename from src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IAsyncEventHandlerOfTEventData.cs rename to src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IAsyncEventHandler.cs diff --git a/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IEventHandler.cs b/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IEventHandler.cs index 2e38fc7ac3..dcd3f17224 100644 --- a/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IEventHandler.cs +++ b/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IEventHandler.cs @@ -8,4 +8,17 @@ namespace Volo.Abp.EventBus.Handlers { } + + /// + /// Defines an interface of a class that handles events of type . + /// + /// Event type to handle + public interface IEventHandler : IEventHandler + { + /// + /// Handler handles the event by implementing this method. + /// + /// Event data + void HandleEvent(TEventData eventData); + } } \ No newline at end of file diff --git a/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IEventHandlerOfTEventData.cs b/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IEventHandlerOfTEventData.cs deleted file mode 100644 index 38ec4eff7a..0000000000 --- a/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/IEventHandlerOfTEventData.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace Volo.Abp.EventBus.Handlers -{ - /// - /// Defines an interface of a class that handles events of type . - /// - /// Event type to handle - public interface IEventHandler : IEventHandler - { - /// - /// Handler handles the event by implementing this method. - /// - /// Event data - void HandleEvent(TEventData eventData); - } -} diff --git a/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/Internals/AsyncActionEventHandler.cs b/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/Internals/AsyncActionEventHandler.cs index 9183c41a05..912748e4ae 100644 --- a/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/Internals/AsyncActionEventHandler.cs +++ b/src/Volo.Abp.EventBus/Volo/Abp/EventBus/Handlers/Internals/AsyncActionEventHandler.cs @@ -15,7 +15,7 @@ namespace Volo.Abp.EventBus.Handlers.Internals /// /// Function to handle the event. /// - public Func Action { get; private set; } + public Func Action { get; } /// /// Creates a new instance of .