Skip to content

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
@github-actions github-actions bot locked and limited conversation to collaborators Nov 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants