alsami/MediatR.Extensions.Autofac.DependencyInjection
51.2
Adequate · 21 September 2026
679
lines of production code
C#
primary language
4
measurements over time
What this system is
This system is a .NET library that integrates the MediatR library with the Autofac dependency injection container. It provides a fluent builder API to configure MediatR's registration scope, custom mediators, and pipeline behaviors within Autofac. The project also includes sample applications demonstrating these integrations in console and WebApi contexts.
Features
Add WebApi sample with Autofac integration and exception handling
A new WebApi sample project has been added to demonstrate MediatR integration with Autofac, including a CustomersController for CRUD operations, a CustomerNotFoundExceptionFilter for handling missing customer errors, and a Startup class that configures Autofac with MediatR's open-generic handler registration.
samples/MediatR.Extensions.Autofac.DependencyInjection.WebApi · high confidence
Add shared sample code for MediatR and Autofac integration
The shared sample project now includes a complete example of using MediatR with Autofac, featuring a customer management domain with commands, queries, notifications, and handlers. This provides a reference implementation for developers integrating MediatR with Autofac for dependency injection.
samples/MediatR.Extensions.Autofac.DependencyInjection.Shared · high confidence
Behavioural changes
Add MediatR 12 support and license-based usage in Autofac DI sample
The Autofac DI sample application has been updated to support MediatR version 12. The sample now demonstrates license-based usage of MediatR by passing a license key to the configuration builder, alongside registering all open generic handler types and resolving commands/queries through the Autofac container.
samples/MediatR.Extensions.Autofac.DependencyInjection.ConsoleApp · medium confidence
Refactor MediatR Autofac integration with a builder pattern and configurable registration scope
The library's registration API has been restructured around a new \MediatRConfigurationBuilder\ that allows users to configure the \Mediator\ type, notification publisher, custom pipeline behaviors, and the registration scope (Transient or Scoped) for all MediatR dependencies. The previous \ContainerExtensions.AddMediatR\ method has been replaced by a fluent builder pattern, and the \MediatRModule\ now applies the configured scope to all registrations, including handlers and built-in behaviors.
src/MediatR.Extensions.Autofac.DependencyInjection · high confidence
Repository restructured with updated solution and documentation
The repository has been restructured: the solution file was renamed from 'mediatr-extensions-autofac-dependenyinjection.sln' to 'MediatR.Extensions.Autofac.DependencyInjection.sln', and the root 'readme.md' was replaced by 'README.md' with updated content. A '.gitignore' file was added to exclude build artifacts and IDE files, and a 'licence.md' (MIT license) was added to the repository root.
(repo-wide) · high confidence
Test coverage
Added tests for MediatR integration with Autofac; Removed test build artifacts.
Dependencies
Upgrade Autofac and MediatR dependencies
The Autofac dependency has been upgraded from version 4.8.1 to 9.1.0, and the MediatR dependency has been upgraded from version 5.0.1 to 14.1.0. These updates bring the project's core libraries to their latest versions, which may include new features, performance improvements, and bug fixes.
(dependencies) · high confidence
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 50 → 51 (+1.7)
- Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.
Lenses
- Code Health 83 → 83 (+0.0)
- Architecture 69 → 69 (+0.0)
- Maturity 55 → 55 (+0.0)
- Readiness 60 → 60 (-0.1)
- Security 34 → 38 (+3.6)
- Event-Driven 100 → 100 (+0.0)
Resolved (7)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- No exposed public API
- dormant codebase — no living knowledge left to concentrate
- redundant comment (samples/MediatR.Extensions.Autofac.DependencyInjection.WebApi/Program.cs)
New (11)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- Medium CVE: Microsoft.Build.Tasks.Git 10.0.203
- Medium: security finding (details withheld)
- Medium: security finding (details withheld)
- No dependency advisory monitoring
- Outdated: xunit.runner.visualstudio
API surface
- Unchanged — 2 HTTP endpoints
Architecture
- Unchanged — 0 containers · 1 contexts · 0 edges
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
alsami/MediatR.Extensions.Autofac.DependencyInjection was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 21 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit e40a999310365269e180739a1e32f62e56cfd167 — the exact code this score is about.
- Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-28e75b8e3254.