Skip to content

RabbitPublisher: set ContentType and DeliveryMode from Message; add t… - #10

Merged
lewisrenfrew merged 2 commits into
mainfrom
publisher-content-type
Oct 2, 2026
Merged

lewisrenfrew merged 2 commits into
mainfrom
publisher-content-type

Conversation

@lewisrenfrew

Copy link
Copy Markdown
Contributor

…ests; 6.1.0

@lewisrenfrew
lewisrenfrew requested review from a team and a balanced review from Copilot October 2, 2026 09:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The constructor change breaks binary compatibility, and the new tests are not executed by CI.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity

Open (2)
What changed in this PR

Adds RabbitMQ content type and delivery-mode support, plus JSON publisher configuration and tests.

Changes:

  • Maps message metadata to RabbitMQ properties.
  • Adds JSON publisher options, documentation, tests, and version 6.1.0.
  • Registers the test project in the solution.
File Description
src/​RabbitMessagePublisher.cs Applies content type and delivery mode.
src/​JsonMessagePublisher.cs Adds publishing options.
src/​Linn.Common.Messaging.RabbitMQ.csproj Bumps package version.
tests/​.../​RabbitPublisherTests.cs Tests metadata publishing.
tests/​.../​Linn.Common.Messaging.RabbitMQ.Tests.csproj Defines the test project.
README.md Documents new options.
Linn.Common.Messaging.RabbitMQ.sln Adds the test project.
changelog.md Records the 6.1.0 release.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/JsonMessagePublisher.cs Outdated
Comment on lines +9 to +11
JsonSerializerOptions? serializerOptions = null,
string? contentType = null,
bool persistent = false)
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{0AB3BF05-4346-4AA6-1389-037BE0695223}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Linn.Common.Messaging.RabbitMQ.Tests", "tests\Linn.Common.Messaging.RabbitMQ.Tests\Linn.Common.Messaging.RabbitMQ.Tests.csproj", "{5F62DC6D-9E1E-4932-B350-926F444EDAA4}"
…istent as init properties; CI runs tests

Addresses PR review: adding optional constructor parameters changed the
CLR signature, so assemblies compiled against 6.0.x could hit
MissingMethodException. The constructor is now unchanged (pinned by a
reflection test) and the new options are init properties. CI gains a
dotnet test step so the test project actually runs.
Copilot AI balanced review requested due to automatic review settings October 2, 2026 11:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The metadata mappings, compatibility-preserving API additions, documentation, and automated tests are consistent and complete.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity

Open (2)

@lewisrenfrew
lewisrenfrew merged commit b0972f6 into main Oct 2, 2026
2 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.

3 participants