Skip to content

Conversation

@twsouthwick
Copy link
Member

It appears that some session providers on the framework side may not be able to iterate over the keys while grabbing items as it may throw an InvalidOperationException with the error: Collection was modified after the enumerator was instantiated. Even though it appears that this should not happen, we'll copy the keys over before grabbing items from the collection so this can't happen.

Fixes #556

It appears that some session providers on the framework side may not be able to iterate over the keys while grabbing items as it may throw an InvalidOperationException with the error: Collection was modified after the enumerator was instantiated. Even though it appears that this should not happen, we'll copy the keys over before grabbing items from the collection so this can't happen.

Fixes #556
Copy link
Member

@mjrousos mjrousos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a minor comment about some unnecessary using statements. Looks good otherwise!

@twsouthwick twsouthwick merged commit 91322f1 into main Dec 11, 2024
5 checks passed
@twsouthwick twsouthwick deleted the realize-enumerable branch December 11, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Intermittent Error with Remote Session State Sharing in .NET Core 6.0 Application Using SystemWebAdapters

3 participants