You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue that if an event handler is unregistered while an event is being handled, the InvalidOperationException exception is thrown:
<System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at Abp.Events.Bus.EventBus.TriggerAsync(Type eventType, Object eventSource, IEventData eventData)
at EventBusTest.Tests.EventBusTest.<>c__DisplayClass2_0.<<EventBustTest_UnregisterWhileHandlingEvent_ShouldNotThrow>b__1>d.MoveNext() in C:\Users\henrique.hilleshein\source\repos\Prime_LAS\LAM\aspnet-core\test\LAM.Tests\EventBusTest.cs:line 44
--- End of stack trace from previous location ---
at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
at NUnit.Framework.Internal.ExceptionHelper.RecordException(Delegate parameterlessDelegate, String parameterName)>
In short, I would expect this to not happen. The unit test below represents what I would expect to happen:
I have an issue that if an event handler is unregistered while an event is being handled, the InvalidOperationException exception is thrown:
In short, I would expect this to not happen. The unit test below represents what I would expect to happen:
My Framework is .Net Core and my Abp version is 7.4.0
The text was updated successfully, but these errors were encountered: