From cfea1882cc476aa37a4e3cf1dc4cc791c6440dec Mon Sep 17 00:00:00 2001 From: Dillan Cagnetta Date: Sat, 24 Aug 2019 16:02:18 +0200 Subject: [PATCH] Updated: removed (unnecessary?) ToArray call on EventHandlerFactories - TODO item --- .../src/Volo.Abp.EventBus/Volo/Abp/EventBus/EventBusBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/EventBusBase.cs b/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/EventBusBase.cs index 321aae6804..cb8ae75336 100644 --- a/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/EventBusBase.cs +++ b/framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/EventBusBase.cs @@ -108,7 +108,7 @@ namespace Volo.Abp.EventBus foreach (var handlerFactories in GetHandlerFactories(eventType)) { - foreach (var handlerFactory in handlerFactories.EventHandlerFactories.ToArray()) //TODO: ToArray should not be needed! + foreach (var handlerFactory in handlerFactories.EventHandlerFactories) { await TriggerHandlerAsync(handlerFactory, handlerFactories.EventType, eventData, exceptions); }