File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff 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+
4858Register a class:
4959
5060``` cs
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments