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

[Add] MessagePack serialization implementation #268

Closed
wants to merge 7 commits into from

Conversation

samatstariongroup
Copy link
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the COMET-SDK code style guidelines
  • I have provided test coverage for my change (where applicable)

Description

This PR adds a MessagePack serilzation capability to the CDP4-COMET SDK. It includes a new Project in which this serializer is implemented. Most of the code is code-generated.

Please have a look at the generated code as well as the changes to CDP4SerivesDal that makes use of messagepack serializer to deserialize the content of the HTTP response based on the CONTENT-TYPE header

@@ -172,8 +196,18 @@ public override async Task<IEnumerable<Thing>> Write(OperationContainer operatio

using (var resultStream = await httpResponseMessage.Content.ReadAsStreamAsync())
{
result.AddRange(this.Serializer.Deserialize(resultStream));

switch (this.QueryConentTypeKind(httpResponseMessage))
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo in the method name

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

6.9% 6.9% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@samatstariongroup
Copy link
Member Author

implemented in b83f01d

@samatstariongroup samatstariongroup deleted the GH266-messsagepack branch July 31, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants