Skip to content

Improves mediator and middelware documentation#9579

Merged
PascalSenn merged 2 commits intomainfrom
pse/improve-mediator-docs
Apr 19, 2026
Merged

Improves mediator and middelware documentation#9579
PascalSenn merged 2 commits intomainfrom
pse/improve-mediator-docs

Conversation

@PascalSenn
Copy link
Copy Markdown
Member

@PascalSenn PascalSenn commented Apr 19, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 19, 2026 08:41
@github-actions github-actions Bot added 📚 documentation This issue is about working on our documentation. 🌶️ mocha labels Apr 19, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Mocha Mediator pipeline/middleware documentation and aligns the MediatorShowcase example code (and its source-generated registration) with the simplified middleware style and updated generator output.

Changes:

  • Simplifies the middleware logging example to use async/await and removes the documentation section on the synchronous fast-path optimization.
  • Updates MediatorShowcase pipeline behaviors to the same async/await pattern and removes now-unused System.Runtime.CompilerServices usings.
  • Regenerates the MediatorShowcase DI extension to register handlers via AddHandlerConfiguration(...) with PipelineBuilder.Build*Pipeline(...) delegates.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
website/src/docs/mocha/v16/mediator/pipeline-and-middleware.md Simplifies middleware example and removes the sync fast-path optimization section.
src/Mocha/src/Examples/MediatorShowcase/PipelineBehaviors.cs Converts showcase middleware to async/await and removes fast-path/local helper patterns.
src/Mocha/src/Examples/MediatorShowcase/MediatorShowcase.cs Removes an unused using directive.
src/Mocha/src/Examples/MediatorShowcase/Generated/Mocha.Analyzers/Mocha.Analyzers.MediatorGenerator/MediatorShowcaseMediatorBuilderExtensions._5hYhW_IBO7W3L_MSoxCPw.g.cs Updates generated registration to add handler configurations and pipeline delegates per handler.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website/src/docs/mocha/v16/mediator/pipeline-and-middleware.md Outdated
Comment thread src/Mocha/src/Examples/MediatorShowcase/PipelineBehaviors.cs Outdated
@tobias-tengler tobias-tengler changed the title Improves mediator and iddelware documetnation [Mocha] Improves mediator and middelware documentation Apr 19, 2026
Copy link
Copy Markdown
Member Author

@PascalSenn PascalSenn left a comment

Choose a reason for hiding this comment

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

LGTM

@PascalSenn PascalSenn changed the title [Mocha] Improves mediator and middelware documentation Improves mediator and middelware documentation Apr 19, 2026
@PascalSenn PascalSenn merged commit 1dea8f3 into main Apr 19, 2026
133 of 135 checks passed
@PascalSenn PascalSenn deleted the pse/improve-mediator-docs branch April 19, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📚 documentation This issue is about working on our documentation. 🌶️ mocha

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants