Skip to content

Conversation

@DeagleGross
Copy link
Member

@DeagleGross DeagleGross commented May 13, 2025

Serialization of type containing a member of type Dictionary<GrainId, T> fails with

NotSupportedException: 'Orleans.Runtime.GrainId' is not a supported dictionary key using converter of type 'Orleans.Runtime.GrainIdJsonConverter'.

I added implementation of ReadAsPropertyName and WriteAsPropertyName methods to GrainIdJsonConverter

Fixes #9491

Microsoft Reviewers: Open in CodeFlow

@DeagleGross DeagleGross merged commit 0f742b2 into dotnet:main May 13, 2025
54 of 55 checks passed
@DeagleGross DeagleGross deleted the dmkorolev/grainId-serialization branch May 13, 2025 13:15
@github-actions github-actions bot locked and limited conversation to collaborators Jun 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Orleans.Runtime.GrainIdJsonConverter does not support GrainId as a dictionary key

2 participants