You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/DryIoc/Container.cs
+24-9
Original file line number
Diff line number
Diff line change
@@ -4442,20 +4442,34 @@ public static GeneratedExpressions GenerateResolutionExpressions(
4442
4442
/// <summary>Excluding open-generic registrations, cause you need to provide type arguments to actually create these types.</summary>
4443
4443
public static bool DefaultValidateCondition(ServiceRegistrationInfo reg) => !reg.ServiceType.IsOpenGeneric();
4444
4444
4445
+
// todo: @vNext instead of `condition` we may use a transformer to close the open-generic types. But may be having `roots` parameters covers it as well.
4445
4446
/// <summary>Helps to find potential problems in service registration setup. Method tries to resolve the specified registrations, collects exceptions,
4446
4447
/// and returns them to user. Does not create any actual service objects. You must specify <paramref name="condition"/> to define your resolution roots,
4447
4448
/// otherwise container will try to resolve all registrations, which usually is not realistic case to validate.</summary>
/// <summary>Same as the Validate with the same parameters but throws the exception with all collected errors</summary>
@@ -14529,7 +14543,8 @@ public static readonly int
14529
14543
"The `serviceTypes` passed to Validate method is null or empty. Please pass the type(s) you want to Validate."),
14530
14544
ValidateFoundErrors = Of(
14531
14545
"Validate method found the errors, please check the ContainerException.CollectedExceptions for the details." + NewLine +
14532
-
"If you see too many (unexpected) errors, try narrowing the resolution roots by passing the selected service types or the condition to the Validate(AndThrow) method."),
14546
+
"If you see too many (unexpected) errors, try narrowing the resolution roots by passing the selected service types or the condition to the Validate(AndThrow) method." + NewLine +
14547
+
"Or alternatively, mark the service registrations with `setup: Setup.With(asResolutionRoot: true)`."),
14533
14548
UnableToInterpretTheNestedLambda = Of(
14534
14549
"Unable to interpret the nested lambda with Body:" + NewLine + "{0}"),
Copy file name to clipboardexpand all lines: test/DryIoc.IssuesTests/GHIssue576_Extension_methods_not_being_handled_correctly_in_MadeOf_service_returning_expression.cs
0 commit comments