Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support MessagePack union types #9151

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

wassim-k
Copy link
Contributor

@wassim-k wassim-k commented Sep 26, 2024

The current implementation of MessagePackCodec doesn't support Grain methods where a parameter is an interface that is marked as a message pack union type.

Microsoft Reviewers: Open in CodeFlow

@@ -198,7 +200,7 @@ object IDeepCopier.DeepCopy(object input, CopyContext context)
var sequence = bufferWriter.Value.AsReadOnlySequence();
result = MessagePackSerializer.Deserialize(input.GetType(), sequence, _options.SerializerOptions);
}
catch
finally
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Potential memory leak

@wassim-k
Copy link
Contributor Author

@dotnet-policy-service agree

@wassim-k wassim-k force-pushed the feature/message-pack-union-types branch from a2ee56f to 6897e74 Compare October 1, 2024 22:44
@ReubenBond ReubenBond merged commit 0804e05 into dotnet:main Oct 2, 2024
22 checks passed
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.

2 participants