Source/Aggregates/Internal/AggregateRootMetadata.cs
Method CreateConstruct
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static Func<IServiceProvider, EventSourceId, Try<TAggregateRoot>> CreateConstruct(Type aggregateRootType)
{
if (!TryGetConstructor(aggregateRootType, out var constructor, out var e))
{
// Not instantiatable