I have a soft delete trigger, and this causes stackoverflow when trying to add/remove same entities at once with async.With same debugging i noticed this line, witch causes all other entity events after that to be cancelled.You can also see that in the sync version here the variable is inside the loop as it should be.When i moved the canceled variable inside the loop my problem with stackoverflow was fixed.
Hello,
I have a soft delete trigger, and this causes stackoverflow when trying to add/remove same entities at once with async.With same debugging i noticed this line, witch causes all other entity events after that to be cancelled.You can also see that in the sync version here the variable is inside the loop as it should be.When i moved the canceled variable inside the loop my problem with stackoverflow was fixed.