Skip to content

docs: Clarify migration steps from MediatR in README#2

Open
sipronunciaaigor wants to merge 2 commits intomasterfrom
docs/fix-migration-instructions
Open

docs: Clarify migration steps from MediatR in README#2
sipronunciaaigor wants to merge 2 commits intomasterfrom
docs/fix-migration-instructions

Conversation

@sipronunciaaigor
Copy link
Owner

Description

Updated README to provide clearer migration instructions from MediatR to BareMediator. Added explicit before/after code snippets for imports and service registration. Emphasized compatibility with existing MediatR interfaces and removed redundant or unclear guidance.

Motivation and context

Previous instructions were not clear on the migration.

How has this been tested?

  • Unit tests
  • Integration tests
  • Manual verification

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added documentation (if required)
  • I have updated the CHANGELOG (if required)

Updated README to provide clearer migration instructions from MediatR to BareMediator. Added explicit before/after code snippets for imports and service registration. Emphasized compatibility with existing MediatR interfaces and removed redundant or unclear guidance.
Copilot AI review requested due to automatic review settings December 17, 2025 22:51
@sipronunciaaigor sipronunciaaigor self-assigned this Dec 17, 2025
@sipronunciaaigor sipronunciaaigor added the documentation Improvements or additions to documentation label Dec 17, 2025
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

Copy link

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

This PR updates the README migration guide from MediatR to BareMediator with restructured instructions and explicit code examples. The changes reorganize the migration steps to separate Program.cs changes from other file changes and consolidate the before/after comparisons into clearer code blocks.

Key Changes

  • Restructured migration section to show Program.cs changes first with both import and service registration changes in one code block
  • Added a separate section for "Everywhere else" namespace replacements
  • Removed redundant instruction text ("Everywhere simply replace" and "In your Program.cs replace also")

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

// After
using BareMediator;
```
using BareMediator.Abstracions;
Copy link

Copilot AI Dec 17, 2025

Choose a reason for hiding this comment

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

Typo: "Abstracions" should be "Abstractions" (missing 'c'). The correct namespace is BareMediator.Abstractions as used throughout the codebase.

Copilot uses AI. Check for mistakes.
Copy link
Owner Author

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback

using MediatR;

// After
using BareMediator.Abstracions;
Copy link

Copilot AI Dec 17, 2025

Choose a reason for hiding this comment

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

Typo: "Abstracions" should be "Abstractions" (missing 'c'). The correct namespace is BareMediator.Abstractions as used throughout the codebase.

Copilot uses AI. Check for mistakes.
// After
using BareMediator;
```
using BareMediator.Abstracions;
Copy link

Copilot AI Dec 17, 2025

Choose a reason for hiding this comment

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

Incorrect namespace for Program.cs. The AddMediator extension method is in the BareMediator namespace, not BareMediator.Abstractions. To use services.AddMediator() as shown on line 184, you need "using BareMediator;" in Program.cs. The BareMediator.Abstractions namespace is needed for handler and request files where you use IRequest and IRequestHandler<T, TResponse>.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI commented Dec 17, 2025

@sipronunciaaigor I've opened a new pull request, #3, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants