File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/DryIoc.Microsoft.DependencyInjection Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,7 @@ public static IContainer WithDependencyInjectionAdapter(this IContainer containe
72
72
Func < IRegistrator , ServiceDescriptor , bool > registerDescriptor = null )
73
73
{
74
74
if ( container . Rules != Rules . MicrosoftDependencyInjectionRules )
75
- // todo: @check the better way to not duplicate the rules from MicrosoftDependencyInjectionRules
76
- container = container . With ( rules => rules
77
- . With ( FactoryMethod . ConstructorWithResolvableArguments )
78
- . WithFactorySelector ( Rules . SelectLastRegisteredFactory ( ) )
79
- . WithTrackingDisposableTransients ( )
80
- . WithoutVariantGenericTypesInResolvedCollection ( ) ) ;
75
+ container = container . With ( rules => rules . WithMicrosoftDependencyInjectionRules ( ) ) ;
81
76
82
77
container . Use < IServiceScopeFactory > ( r => new DryIocServiceScopeFactory ( r ) ) ;
83
78
You can’t perform that action at this time.
0 commit comments