Skip to content

Commit 7c13c0c

Browse files
committed
Minor changes
1 parent 336bf36 commit 7c13c0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

READMe.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ There are four parts:
6565
1. `RegisterAssemblyPublicNonGenericClasses`, which finds all the classes.
6666
2. An options `Where` method, which allows you to filter the classes to be considered.
6767
3. The `AsPublicImplementedInterfaces` method which finds ant interfaces on a class and registers those interfaces as pointing to the class.
68-
4. Various attributes that you can add to your classes to:
68+
4. Various attributes that you can add to your classes to tell `NetCore.AutoRegisterDi` what to do:
6969
i) Set the `ServiceLifetime` of your class, e.g. `[RegisterAsSingleton]` to apply a `Singleton` lifetime to your class.
70-
ii) A `[DoNotAutoRegister]` attribute to stop your class from being registered with the DI.
70+
ii) A `[DoNotAutoRegister]` attribute to stop library your class from being registered with the DI.
7171

7272

7373
#### 1. The `RegisterAssemblyPublicNonGenericClasses` method
@@ -111,10 +111,10 @@ on what lifetime (and other terms) means.*
111111

112112
Fedor Zhekov, (GitHub @ZFi88) added attributes to allow you to define the `ServiceLifetime` of your class, and also exclude your class from being registered with the DI.
113113

114-
Here are the attributes that sets the `ServiceLifetime` to be used when your class is registered with the DI.
114+
Here are the attributes that sets the `ServiceLifetime` to be used when `NetCore.AutoRegisterDi` registers your class with the DI.
115115

116116
1. `[RegisterAsSingleton]` - Singleton lifetime.
117117
2. `[RegisterAsTransient]` - Transient lifetime.
118118
3. `[RegisterAsScoped]` - Scoped lifetime.
119119

120-
The last attribute is `[DoNotAutoRegister]`, which stops that class being registered with the DI.
120+
The last attribute is `[DoNotAutoRegister]`, which stops `NetCore.AutoRegisterDi` registered that class with the DI.

0 commit comments

Comments
 (0)