Open dBug404 opened 8 years ago
Hi @dBug404, thanks for your message.
Is it possible for you to describe how to get this error, so it is more understandable for me?
THX
I've changed my code that only one thread can work at one aggregate at a time, but the problems still persisted.
After some debugging i took a look at the fluent-cqrs code and found out, that in the class AggregateLifeCycle
i experience following error: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. bei System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) bei System.Collections.Generic.List
1.Enumerator.MoveNextRare() bei System.Collections.Generic.List
1.Enumerator.MoveNext() bei Fluent_CQRS.AggregateLifeCycle1.StoreChanges(ExecutionResult executionResult) bei Fluent_CQRS.AggregateLifeCycle
1.TryStoreChanges(ExecutionResult executionResult)I guess this is caused by multiple threads working with the same aggregate.
I am not sure, if this would be the responsibility of the framework to handle concurrency issues or the caller. I guess you could make arguments for both sides.