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 Default Message Mapper #3407

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Add Default Message Mapper #3407

merged 1 commit into from
Dec 30, 2024

Conversation

preardon
Copy link
Member

@preardon preardon commented Dec 2, 2024

First look into Default Message Mapper

#3355

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.07 (9.17 -> 9.24)

View detailed results in CodeScene


var header = new MessageHeader(messageId: request.Id, topic: publication.Topic, messageType: messageType);

var body = new MessageBody(JsonSerializer.Serialize(request, JsonSerialisationOptions.Options));
Copy link
Member

Choose a reason for hiding this comment

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

In principle there is an async serializer. I am not sure if it actually has meaning. But we should investigate. The MS route here is to pass an enum flag to the common method and then just use sync or async code in the body, based on that flag as needed

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@iancooper iancooper left a comment

Choose a reason for hiding this comment

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

This looks really good. I can add a default Avro as well later

@preardon preardon force-pushed the DefaultMessageMapper branch from cb9fc8d to f04c96a Compare December 23, 2024 12:33
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.07 (9.17 -> 9.24)

View detailed results in CodeScene

@preardon preardon force-pushed the DefaultMessageMapper branch from f04c96a to edcbda9 Compare December 30, 2024 11:50
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.07 (9.17 -> 9.24)

View detailed results in CodeScene

@preardon preardon force-pushed the DefaultMessageMapper branch from edcbda9 to 304dc98 Compare December 30, 2024 11:59
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.07 (9.17 -> 9.24)

View detailed results in CodeScene

@preardon preardon merged commit b440178 into master Dec 30, 2024
13 of 20 checks passed
@preardon preardon deleted the DefaultMessageMapper branch December 30, 2024 13:37
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