File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public void ConfigureServices(IServiceCollection services)
1515{
1616 // ... other configure code removed
1717
18- service .RegisterAssemblyPublicNonGenericClasses ()
18+ services .RegisterAssemblyPublicNonGenericClasses ()
1919 .Where (c => c .Name .EndsWith (" Service" )) // optional
2020 .IgnoreThisInterface <IMyInterface >() // optional
2121 .AsPublicImplementedInterfaces ();
@@ -35,7 +35,7 @@ public void ConfigureServices(IServiceCollection services)
3535 Assembly .GetAssembly (typeof (MyServiceInAssembly2 ))
3636 };
3737
38- service .RegisterAssemblyPublicNonGenericClasses (assembliesToScan )
38+ services .RegisterAssemblyPublicNonGenericClasses (assembliesToScan )
3939 .Where (c => c .Name .EndsWith (" Service" )) // optional
4040 .IgnoreThisInterface <IMyInterface >() // optional
4141 .AsPublicImplementedInterfaces ();
@@ -169,4 +169,4 @@ Here are the attributes that sets the `ServiceLifetime` to be used when `NetCore
1691692 . `[RegisterAsTransient ]` - Transient lifetime .
1701703 . `[RegisterAsScoped ]` - Scoped lifetime .
171171
172- The last attribute is `[DoNotAutoRegister ]`, which stops `NetCore .AutoRegisterDi ` registered that class with the DI .
172+ The last attribute is `[DoNotAutoRegister ]`, which stops `NetCore .AutoRegisterDi ` registered that class with the DI .
You can’t perform that action at this time.
0 commit comments