@@ -9,68 +9,68 @@ public static class IServiceCollectionExtensions
99 {
1010 public static IServiceCollection BatchInject (
1111 this IServiceCollection services , Action < Type , Type > injector , dynamic filter ,
12- dynamic blacklist = null , bool parallel = false , bool includeNestedClass = true )
12+ dynamic blacklist = null , bool parallel = false , bool nested = true )
1313 {
14- BatchDI . BatchInject ( injector , filter , blacklist , parallel , includeNestedClass ) ;
14+ BatchDI . BatchInject ( injector , filter , blacklist , parallel , nested ) ;
1515 return services ;
1616 }
1717
1818 public static IServiceCollection BatchInject (
1919 this IServiceCollection services , Action < Type > injector , dynamic filter ,
20- dynamic blacklist = null , bool parallel = false , bool includeNestedClass = true )
20+ dynamic blacklist = null , bool parallel = false , bool nested = true )
2121 {
22- BatchDI . BatchInject ( injector , filter , blacklist , parallel , includeNestedClass ) ;
22+ BatchDI . BatchInject ( injector , filter , blacklist , parallel , nested ) ;
2323 return services ;
2424 }
2525
2626 public static IServiceCollection BatchSingleton (
2727 this IServiceCollection services , dynamic filter ,
28- dynamic blacklist = null , bool parallel = false , bool includeNestedClass = true )
28+ dynamic blacklist = null , bool parallel = false , bool nested = true )
2929 {
3030
3131 if ( BatchDI . filterHasInterface ( filter ) )
3232 {
3333 Action < Type , Type > caller = ( _interface , _implementation ) => services . AddSingleton ( _interface , _implementation ) ;
34- BatchDI . BatchInject ( caller , filter , blacklist , parallel , includeNestedClass ) ;
34+ BatchDI . BatchInject ( caller , filter , blacklist , parallel , nested ) ;
3535 }
3636 else
3737 {
3838 Action < Type > caller = ( _implementation ) => services . AddSingleton ( _implementation ) ;
39- BatchDI . BatchInject ( caller , filter , blacklist , parallel , includeNestedClass ) ;
39+ BatchDI . BatchInject ( caller , filter , blacklist , parallel , nested ) ;
4040 }
4141 return services ;
4242 }
4343
4444 public static IServiceCollection BatchTransient (
4545 this IServiceCollection services , string filter ,
46- dynamic blacklist = null , bool parallel = false , bool includeNestedClass = true )
46+ dynamic blacklist = null , bool parallel = false , bool nested = true )
4747 {
4848 if ( BatchDI . filterHasInterface ( filter ) )
4949 {
5050 Action < Type , Type > caller = ( _interface , _implementation ) => services . AddTransient ( _interface , _implementation ) ;
51- BatchDI . BatchInject ( caller , filter , blacklist , parallel , includeNestedClass ) ;
51+ BatchDI . BatchInject ( caller , filter , blacklist , parallel , nested ) ;
5252 }
5353 else
5454 {
5555 Action < Type > caller = ( _implementation ) => services . AddTransient ( _implementation ) ;
56- BatchDI . BatchInject ( caller , filter , blacklist , parallel , includeNestedClass ) ;
56+ BatchDI . BatchInject ( caller , filter , blacklist , parallel , nested ) ;
5757 }
5858 return services ;
5959 }
6060
6161 public static IServiceCollection BatchScoped (
6262 this IServiceCollection services , string filter ,
63- dynamic blacklist = null , bool parallel = false , bool includeNestedClass = true )
63+ dynamic blacklist = null , bool parallel = false , bool nested = true )
6464 {
6565 if ( BatchDI . filterHasInterface ( filter ) )
6666 {
6767 Action < Type , Type > caller = ( _interface , _implementation ) => services . AddScoped ( _interface , _implementation ) ;
68- BatchDI . BatchInject ( caller , filter , blacklist , parallel , includeNestedClass ) ;
68+ BatchDI . BatchInject ( caller , filter , blacklist , parallel , nested ) ;
6969 }
7070 else
7171 {
7272 Action < Type > caller = ( _implementation ) => services . AddScoped ( _implementation ) ;
73- BatchDI . BatchInject ( caller , filter , blacklist , parallel , includeNestedClass ) ;
73+ BatchDI . BatchInject ( caller , filter , blacklist , parallel , nested ) ;
7474 }
7575 return services ;
7676 }
0 commit comments