Skip to content

[Mocha] Configure receive resilience on InMemory queues - #10508

Merged
PascalSenn merged 1 commit into
pse/mocha-configurable-rabbitmq-queuefrom
pse/mocha-configurable-inmemory-queue
Oct 9, 2026
Merged

PascalSenn merged 1 commit into
pse/mocha-configurable-rabbitmq-queuefrom
pse/mocha-configurable-inmemory-queue

Conversation

@PascalSenn

Copy link
Copy Markdown
Member

The InMemory Queue(...) descriptor implements
IConfigurable and replays the recorded
callbacks onto the queue's receive endpoint.


Stack created with GitHub Stacks CLI • Give Feedback 💬

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Patch coverage

100.0% of changed lines covered (9/9)

File Covered Changed Patch %
…/Configurations/InMemoryQueueDescriptorConfiguration.cs 1 1 100.0% 🟢
…/Descriptors/InMemoryMessagingTransportDescriptor.cs 4 4 100.0% 🟢
…/Descriptors/InMemoryQueueDescriptor.cs 4 4 100.0% 🟢

Project coverage: 58.6% (314301/536432 lines)

Copilot AI balanced review requested due to automatic review settings October 8, 2026 20:15
@PascalSenn
PascalSenn force-pushed the pse/mocha-configurable-inmemory-queue branch from de65f48 to 48591b8 Compare October 8, 2026 20:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The implementation follows the established RabbitMQ pattern and includes focused behavioral coverage.

0 open findings

What changed in this PR

Enables InMemory queue descriptors to apply receive resilience configuration to their materialized endpoints.

Changes:

  • Records and replays queue-level receive configuration callbacks.
  • Adds coverage for resilience features and merged endpoint policies.
File Description
InMemoryUnifiedQueueTests.cs Tests queue resilience configuration and merging.
InMemoryQueueDescriptor.cs Records receive configuration callbacks.
InMemoryMessagingTransportDescriptor.cs Replays callbacks onto queue endpoints.
IInMemoryQueueDescriptor.cs Exposes receive middleware configurability.
InMemoryQueueDescriptorConfiguration.cs Stores callbacks in registration order.

🧠 Review effort: Balanced


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

The InMemory Queue(...) descriptor implements
IConfigurable<IReceiveMiddlewareProvider> and replays the recorded
callbacks onto the queue's receive endpoint.
@PascalSenn
PascalSenn force-pushed the pse/mocha-configurable-inmemory-queue branch from 48591b8 to a5ccbe9 Compare October 9, 2026 10:09
@PascalSenn
PascalSenn merged commit ee2d3fd into main Oct 9, 2026
158 checks passed
@PascalSenn
PascalSenn deleted the pse/mocha-configurable-inmemory-queue branch October 9, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants