File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -6091,6 +6091,15 @@ public Rules WithVariantGenericTypesInResolve() =>
6091
6091
public Rules WithoutVariantGenericTypesInResolve() =>
6092
6092
WithSettings(_settings & ~Settings.VariantGenericTypesInResolve);
6093
6093
6094
+ /// <summary>If the dependency factory is not found (including the dynamic factories) generate the `Resolve` call for it,
6095
+ /// so it may be resolved from the compile-time registrations</summary>
6096
+ public Rules WithGenerateResolutionCallForMissingDependency() =>
6097
+ WithSettings(_settings | Settings.GenerateResolutionCallForMissingDependency);
6098
+
6099
+ /// <summary>Switch off the <see ref="WithGenerateResolutionCallForMissingDependency"/>/summary>
6100
+ public Rules WithoutGenerateResolutionCallForMissingDependency() =>
6101
+ WithSettings(_settings & ~Settings.GenerateResolutionCallForMissingDependency);
6102
+
6094
6103
/// <summary><see cref="WithDefaultIfAlreadyRegistered"/>.</summary>
6095
6104
public IfAlreadyRegistered DefaultIfAlreadyRegistered { get; private set; }
6096
6105
@@ -6293,6 +6302,7 @@ private enum Settings
6293
6302
ServiceProviderGetServiceShouldThrowIfUnresolved = 1 << 22,
6294
6303
ThrowIfScopedOrSingletonHasTransientDependency = 1 << 23,
6295
6304
VariantGenericTypesInResolve = 1 << 24,
6305
+ GenerateResolutionCallForMissingDependency = 1 << 25,
6296
6306
}
6297
6307
6298
6308
private const Settings DEFAULT_SETTINGS
You can’t perform that action at this time.
0 commit comments