Skip to content

Fix #399 - #401

Merged
antoineatstariongroup merged 1 commit into
developmentfrom
399-bug-serializerserializeresponseasync-writes-synchronously-to-the-target-stream
Oct 29, 2026
Merged

antoineatstariongroup merged 1 commit into
developmentfrom
399-bug-serializerserializeresponseasync-writes-synchronously-to-the-target-stream

Conversation

@antoineatstariongroup

Copy link
Copy Markdown
Collaborator

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 SysML2.NET code style guidelines
  • I have provided test coverage for my change (where applicable)

Description

Fix #399

Async serialization never calls any non-async flush

@sonarqubecloud

Copy link
Copy Markdown

@samatstariongroup samatstariongroup left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good to me, minor comment, why add a new line?

public void Serialize(IEnumerable<IIdentified> dataItems, SerializationModeKind serializationModeKind, bool includeDerivedProperties, Stream stream, JsonWriterOptions jsonWriterOptions)
public void Serialize(IEnumerable<IIdentified> dataItems, SerializationModeKind serializationModeKind, bool includeDerivedProperties, Stream stream,
JsonWriterOptions jsonWriterOptions)
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why a new line?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Just to be compliant with wrapping rules that are set on the editorconfig

@antoineatstariongroup
antoineatstariongroup merged commit 1f7da99 into development Oct 29, 2026
8 checks passed
@antoineatstariongroup
antoineatstariongroup deleted the 399-bug-serializerserializeresponseasync-writes-synchronously-to-the-target-stream branch October 29, 2026 10:12
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.

[Bug]: Serializer.SerializeResponseAsync writes synchronously to the target stream

2 participants