Skip to content

Commit 5a49b94

Browse files
Version bump
1 parent dadb0ea commit 5a49b94

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ Classes should be decorated with one of four attributes:
4545
- `[RegisterTransient]`
4646
- `[RegisterHostedService]`
4747

48+
Variants for keyed and the service `Try` register pattern are also available:
49+
- `[TryRegisterScoped]`
50+
- `[TryRegisterSingleton]`
51+
- `[TryRegisterTransient]`
52+
- `[RegisterKeyedScoped]`
53+
- `[RegisterKeyedSingleton]`
54+
- `[RegisterKeyedTransient]`
55+
56+
Each keyed attribute has a `Try` counterpart.
57+
4858
Register a class:
4959

5060
```cs

src/AutoRegisterInject/AutoRegisterInject.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<RepositoryUrl>https://github.com/patrickklaeren/AutoRegisterInject</RepositoryUrl>
1919
<RepositoryType>git</RepositoryType>
2020
<PackageTags>source generator;dependency injection;dependencies;registration;extensions;ioc</PackageTags>
21-
<Version>1.3.1</Version>
21+
<Version>1.4.0</Version>
2222
</PropertyGroup>
2323

2424
<ItemGroup>

0 commit comments

Comments
 (0)