Simple, unambitious mediator implementation in .NET
This report summarizes scanner evidence for LuckyPennySoftware/MediatR, a C# project with 11,860 GitHub stars. SynthScan examined 14,166 lines of code across 166 source files, recording 45 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 3.2 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 45 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 11 finding(s).
Which changes need focused human review? 45 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 45 distinct pattern matches across 2 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | samples/MediatR.Examples.Windsor/Program.cs | 41 | container.Register(fromAssemblyContainingPing.BasedOn(typeof(IRequestExceptionHandler<,,>)).WithServiceAllInterf | COMMENT |
| LOW | samples/MediatR.Examples.Windsor/Program.cs | 61 | // ?.IsAssignableTo(typeof(IRequestExceptionHandler<,,>)) ?? false; | COMMENT |
| LOW | …/MediatR.Examples.PublishStrategies/PublishStrategy.cs | 1 | namespace MediatR.Examples.PublishStrategies; | COMMENT |
| LOW | src/MediatR.Contracts/IRequest.cs | 1 | namespace MediatR; | COMMENT |
| LOW | src/MediatR.Contracts/Unit.cs | 21 | public static Task<Unit> Task { get; } = System.Threading.Tasks.Task.FromResult(_value); | COMMENT |
| LOW | src/MediatR.Contracts/Unit.cs | 41 | /// A value that indicates the relative order of the objects being compared. | COMMENT |
| LOW | src/MediatR.Contracts/Unit.cs | 61 | /// <returns> | COMMENT |
| LOW | src/MediatR.Contracts/Unit.cs | 81 | public static bool operator ==(Unit first, Unit second) => true; | COMMENT |
| LOW | src/MediatR/IStreamPipelineBehavior.cs | 1 | | COMMENT |
| LOW | src/MediatR/IStreamPipelineBehavior.cs | 21 | { | COMMENT |
| LOW | src/MediatR/IPipelineBehavior.cs | 1 | COMMENT | |
| LOW | src/MediatR/IPipelineBehavior.cs | 21 | { | COMMENT |
| LOW | src/MediatR/IPublisher.cs | 1 | using System.Threading; | COMMENT |
| LOW | src/MediatR/IPublisher.cs | 21 | /// </summary> | COMMENT |
| LOW | src/MediatR/ISender.cs | 21 | /// <summary> | COMMENT |
| LOW | src/MediatR/ISender.cs | 41 | /// <typeparam name="TResponse"></typeparam> | COMMENT |
| LOW | src/MediatR/IRequestHandler.cs | 1 | using System.Threading; | COMMENT |
| LOW | src/MediatR/IRequestHandler.cs | 21 | } | COMMENT |
| LOW | src/MediatR/IStreamRequestHandler.cs | 1 | using System.Collections.Generic; | COMMENT |
| LOW | src/MediatR/Pipeline/IRequestPreProcessor.cs | 1 | namespace MediatR.Pipeline; | COMMENT |
| LOW | src/MediatR/Pipeline/IRequestPostProcessor.cs | 1 | namespace MediatR.Pipeline; | COMMENT |
| LOW | src/MediatR/Pipeline/IRequestExceptionHandler.cs | 21 | /// <param name="exception">The thrown exception</param> | COMMENT |
| LOW | src/MediatR/Pipeline/RequestExceptionHandlerState.cs | 1 | namespace MediatR.Pipeline; | COMMENT |
| LOW | …R/MicrosoftExtensionsDI/OpenBehaviorClosingStrategy.cs | 1 | namespace Microsoft.Extensions.DependencyInjection; | COMMENT |
| LOW | …R/MicrosoftExtensionsDI/OpenBehaviorClosingStrategy.cs | 21 | /// from the service interface when the service provider is built. | COMMENT |
| LOW | …R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs | 21 | /// Mediator implementation type to register. Default is <see cref="Mediator"/> | COMMENT |
| LOW | …R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs | 61 | /// List of stream behaviors to register in specific order | COMMENT |
| LOW | …R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs | 81 | /// Configure the maximum number of type parameters that a generic request handler can have. To Disable this constra | COMMENT |
| LOW | …R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs | 101 | /// Flag that controlls whether MediatR will attempt to register handlers that containg generic type parameters. | COMMENT |
| LOW | …R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs | 161 | /// <summary> | COMMENT |
| LOW | …R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs | 281 | /// </summary> | COMMENT |
| LOW | …R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs | 441 | /// Register a closed request post processor type | COMMENT |
| LOW | …R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs | 461 | return this; | COMMENT |
| LOW | src/MediatR/Entities/OpenBehavior.cs | 21 | OpenBehaviorType = openBehaviorType; | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/MediatR.Tests/SendTests.cs | 120 | public class TestClass1PingRequestHandler : IRequestHandler<VoidGenericPing<PongExtension>> | CODE |
| LOW | test/MediatR.Tests/SendTests.cs | 149 | public class MultipleGenericTypeParameterRequestHandler<T1, T2, T3> : IRequestHandler<MultipleGenericTypeParameterRe | CODE |
| LOW | test/MediatR.Tests/SendTests.cs | 185 | public class TimeoutRequestHandler : IRequestHandler<TimeoutRequest> | CODE |
| LOW | test/MediatR.Tests/MicrosoftExtensionsDI/Handlers.cs | 222 | class OpenGenericVoidRequestHandler<T> : IRequestHandler<OpenGenericVoidRequest<T>> | CODE |
| LOW | test/MediatR.Tests/MicrosoftExtensionsDI/Handlers.cs | 230 | class OpenGenericReturnTypeRequestHandler<T> : IRequestHandler<OpenGenericReturnTypeRequest<T>, string> | CODE |
| LOW | …t/MediatR.Tests/MicrosoftExtensionsDI/PipelineTests.cs | 902 | public sealed class FooRequestHandler : IRequestHandler<FooRequest> { | CODE |
| LOW | …oftExtensionsDI/OpenGenericConstraintInferenceTests.cs | 23 | public class TxStreamRequestHandler : IStreamRequestHandler<TxStreamRequest, Pong> | CODE |
| LOW | …oftExtensionsDI/OpenGenericConstraintInferenceTests.cs | 189 | public class LinkRequestHandler : IRequestHandler<LinkRequest, LinkResponse> | CODE |
| LOW | …oftExtensionsDI/OpenGenericConstraintInferenceTests.cs | 244 | public class DualFooRequestHandler : IRequestHandler<DualFooRequest, Pong> | CODE |
| LOW | …oftExtensionsDI/OpenGenericConstraintInferenceTests.cs | 255 | public class DualBarRequestHandler : IRequestHandler<DualBarRequest, Pong> | CODE |
| LOW | …oftExtensionsDI/OpenGenericConstraintInferenceTests.cs | 427 | public class CrossLinkRequestHandler : IRequestHandler<CrossLinkRequest, CrossLinkResponse> | CODE |