Skip to content

Commit 4004b1d

Browse files
authored
Merge pull request #9 from chrisK00/master
Update READMe.md - code typo
2 parents 89c5117 + 8b349b7 commit 4004b1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

READMe.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
169169
2. `[RegisterAsTransient]` - Transient lifetime.
170170
3. `[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.

0 commit comments

Comments
 (0)