Source/Projections/Builder/ConventionProjectionBuilder.cs
File ConventionProjectionBuilder.cs
has 279 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Reflection;
Class ConventionProjectionBuilder
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class ConventionProjectionBuilder<TProjection> : ICanTryBuildProjection
where TProjection : ReadModel, new()
{
readonly ProjectionModelId _identifier;
const string MethodName = "On";
Method TryAddConventionOnMethods
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bool TryAddConventionOnMethods(
ProjectionModelId identifier,
IEnumerable<MethodInfo> methods,
IEventTypes eventTypes,
IDictionary<EventType, IProjectionMethod<TProjection>> eventTypesToMethods,
Method TryAddDecoratedOnMethods
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bool TryAddDecoratedOnMethods(
ProjectionModelId identifier,
IEnumerable<MethodInfo> methods,
IDictionary<EventType, IProjectionMethod<TProjection>> eventTypesToMethods,
IClientBuildResults buildResults)
Method TryAddConventionOnMethods
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ProjectionModelId identifier,
IEnumerable<MethodInfo> methods,
IEventTypes eventTypes,
IDictionary<EventType, IProjectionMethod<TProjection>> eventTypesToMethods,
IClientBuildResults buildResults)
Method ParametersAreOkay
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
bool ParametersAreOkay(ProjectionModelId identifier, MethodInfo method, IClientBuildResults buildResults,
[NotNullWhen(true)] out ProjectionParametersType? parametersType,
[NotNullWhen(true)] out ProjectionMethodResponseType? responseType