@@ -1020,8 +1020,8 @@ DI.Setup(nameof(Composition))
10201020 // and performs further initialization logic
10211021 // defined in the lambda function to set up the log file name
10221022 .Singleton <FileLogger , DateTime , IFileLogger >((
1023- FileLogger logger ,
1024- [Tag (" today" )] DateTime date ) => {
1023+ logger ,
1024+ [Tag (" today" )] date ) => {
10251025 logger .Init ($" app-{date : yyyy - MM - dd }.log" );
10261026 return logger ;
10271027 })
@@ -7608,7 +7608,7 @@ internal partial class BaseComposition
76087608
76097609 public DatabaseConnectionSettings ConnectionSettings { get ; set ; } = new (" " , 0 , " " );
76107610
7611- int GetDefaultTimeout () => 5000 ;
7611+ private int GetDefaultTimeout () => 5000 ;
76127612
76137613 private void Setup ()
76147614 {
@@ -7800,10 +7800,10 @@ Important points:
78007800- Simple property accessors (field-backed) can be used without partial methods.
78017801
78027802Example demonstrates:
7803- 1 . BaseComposition provides connection string and max connections properties
7804- 2 . ConnectionString has simple field-backed accessor (no logic)
7805- 3 . MaxConnections has custom getter logic via partial method
7806- 4 . Dependent Composition implements custom accessor logic for MaxConnections
7803+ 1 . BaseComposition provides connection string and max connections properties
7804+ 2 . ConnectionString has simple field-backed accessor (no logic)
7805+ 3 . MaxConnections has custom getter logic via partial method
7806+ 4 . Dependent Composition implements custom accessor logic for MaxConnections
78077807
78087808Useful when:
78097809- Properties include custom logic and are referenced by bindings in a dependent setup.
@@ -8281,7 +8281,7 @@ using Shouldly;
82818281using Pure .DI ;
82828282
82838283DI .Setup (nameof (DeepComposition ))
8284- .Bind ().To < int > (_ => 7 )
8284+ .Bind ().To (_ => 7 )
82858285 .Bind ().To <Dependency >()
82868286 .Bind ().To <Service >(ctx =>
82878287 {
@@ -8292,7 +8292,7 @@ DI.Setup(nameof(DeepComposition))
82928292 .Root <Service >(" Service" );
82938293
82948294DI .Setup (nameof (ShallowComposition ))
8295- .Bind ().To < int > (_ => 7 )
8295+ .Bind ().To (_ => 7 )
82968296 .Bind ().To <Dependency >()
82978297 .Bind ().To <Service >(ctx =>
82988298 {
@@ -10045,7 +10045,7 @@ The [project file](/samples/AvaloniaApp/AvaloniaApp.csproj) looks like this:
1004510045<Project Sdk =" Microsoft.NET.Sdk" >
1004610046 ...
1004710047 <ItemGroup >
10048- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
10048+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1004910049 <PrivateAssets >all</PrivateAssets >
1005010050 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1005110051 </PackageReference >
@@ -10109,11 +10109,11 @@ The [project file](/samples/BlazorServerApp/BlazorServerApp.csproj) looks like t
1010910109<Project Sdk =" Microsoft.NET.Sdk.Web" >
1011010110 ...
1011110111 <ItemGroup >
10112- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
10112+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1011310113 <PrivateAssets >all</PrivateAssets >
1011410114 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1011510115 </PackageReference >
10116- <PackageReference Include =" Pure.DI.MS" Version =" 2.3.3 " />
10116+ <PackageReference Include =" Pure.DI.MS" Version =" 2.3.4 " />
1011710117 </ItemGroup >
1011810118
1011910119</Project >
@@ -10177,11 +10177,11 @@ The [project file](/samples/BlazorWebAssemblyApp/BlazorWebAssemblyApp.csproj) lo
1017710177<Project Sdk =" Microsoft.NET.Sdk.Web" >
1017810178 ...
1017910179 <ItemGroup >
10180- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
10180+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1018110181 <PrivateAssets >all</PrivateAssets >
1018210182 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1018310183 </PackageReference >
10184- <PackageReference Include =" Pure.DI.MS" Version =" 2.3.3 " />
10184+ <PackageReference Include =" Pure.DI.MS" Version =" 2.3.4 " />
1018510185 </ItemGroup >
1018610186
1018710187</Project >
@@ -10206,7 +10206,7 @@ The [project file](/samples/ShroedingersCatNativeAOT/ShroedingersCatNativeAOT.cs
1020610206<Project Sdk =" Microsoft.NET.Sdk" >
1020710207 ...
1020810208 <ItemGroup >
10209- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
10209+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1021010210 <PrivateAssets >all</PrivateAssets >
1021110211 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1021210212 </PackageReference >
@@ -10307,7 +10307,7 @@ The [project file](/samples/ShroedingersCat/ShroedingersCat.csproj) looks like t
1030710307<Project Sdk =" Microsoft.NET.Sdk" >
1030810308 ...
1030910309 <ItemGroup >
10310- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
10310+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1031110311 <PrivateAssets >all</PrivateAssets >
1031210312 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1031310313 </PackageReference >
@@ -10393,7 +10393,7 @@ The [project file](/samples/ShroedingersCatTopLevelStatements/ShroedingersCatTop
1039310393<Project Sdk =" Microsoft.NET.Sdk" >
1039410394 ...
1039510395 <ItemGroup >
10396- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
10396+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1039710397 <PrivateAssets >all</PrivateAssets >
1039810398 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1039910399 </PackageReference >
@@ -10495,11 +10495,11 @@ The [project file](/samples/EF/EF.csproj) looks like this:
1049510495<Project Sdk =" Microsoft.NET.Sdk.Web" >
1049610496 ...
1049710497 <ItemGroup >
10498- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
10498+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1049910499 <PrivateAssets >all</PrivateAssets >
1050010500 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1050110501 </PackageReference >
10502- <PackageReference Include =" Pure.DI.MS" Version =" 2.3.3 " />
10502+ <PackageReference Include =" Pure.DI.MS" Version =" 2.3.4 " />
1050310503 </ItemGroup >
1050410504
1050510505</Project >
@@ -10563,11 +10563,11 @@ The [project file](/samples/GrpcService/GrpcService.csproj) looks like this:
1056310563<Project Sdk =" Microsoft.NET.Sdk.Web" >
1056410564 ...
1056510565 <ItemGroup >
10566- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
10566+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1056710567 <PrivateAssets >all</PrivateAssets >
1056810568 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1056910569 </PackageReference >
10570- <PackageReference Include =" Pure.DI.MS" Version =" 2.3.3 " />
10570+ <PackageReference Include =" Pure.DI.MS" Version =" 2.3.4 " />
1057110571 </ItemGroup >
1057210572
1057310573</Project >
@@ -10728,11 +10728,11 @@ The [project file](/samples/MAUIApp/MAUIApp.csproj) looks like this:
1072810728<Project Sdk =" Microsoft.NET.Sdk" >
1072910729 ...
1073010730 <ItemGroup >
10731- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
10731+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1073210732 <PrivateAssets >all</PrivateAssets >
1073310733 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1073410734 </PackageReference >
10735- <PackageReference Include =" Pure.DI.MS" Version =" 2.3.3 " />
10735+ <PackageReference Include =" Pure.DI.MS" Version =" 2.3.4 " />
1073610736 </ItemGroup >
1073710737
1073810738</Project >
@@ -10820,11 +10820,11 @@ The [project file](/samples/MinimalWebAPI/MinimalWebAPI.csproj) looks like this:
1082010820<Project Sdk =" Microsoft.NET.Sdk.Web" >
1082110821 ...
1082210822 <ItemGroup >
10823- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
10823+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1082410824 <PrivateAssets >all</PrivateAssets >
1082510825 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1082610826 </PackageReference >
10827- <PackageReference Include =" Pure.DI.MS" Version =" 2.3.3 " />
10827+ <PackageReference Include =" Pure.DI.MS" Version =" 2.3.4 " />
1082810828 </ItemGroup >
1082910829
1083010830</Project >
@@ -10994,11 +10994,11 @@ The [project file](/samples/WebAPI/WebAPI.csproj) looks like this:
1099410994<Project Sdk =" Microsoft.NET.Sdk.Web" >
1099510995 ...
1099610996 <ItemGroup >
10997- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
10997+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1099810998 <PrivateAssets >all</PrivateAssets >
1099910999 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1100011000 </PackageReference >
11001- <PackageReference Include =" Pure.DI.MS" Version =" 2.3.3 " />
11001+ <PackageReference Include =" Pure.DI.MS" Version =" 2.3.4 " />
1100211002 </ItemGroup >
1100311003
1100411004</Project >
@@ -11063,11 +11063,11 @@ The [project file](/samples/WebApp/WebApp.csproj) looks like this:
1106311063<Project Sdk =" Microsoft.NET.Sdk.Web" >
1106411064 ...
1106511065 <ItemGroup >
11066- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
11066+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1106711067 <PrivateAssets >all</PrivateAssets >
1106811068 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1106911069 </PackageReference >
11070- <PackageReference Include =" Pure.DI.MS" Version =" 2.3.3 " />
11070+ <PackageReference Include =" Pure.DI.MS" Version =" 2.3.4 " />
1107111071 </ItemGroup >
1107211072
1107311073</Project >
@@ -11135,7 +11135,7 @@ The [project file](/samples/WinFormsAppNetCore/WinFormsAppNetCore.csproj) looks
1113511135<Project Sdk =" Microsoft.NET.Sdk" >
1113611136 ...
1113711137 <ItemGroup >
11138- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
11138+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1113911139 <PrivateAssets >all</PrivateAssets >
1114011140 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1114111141 </PackageReference >
@@ -11208,7 +11208,7 @@ The [project file](/samples/WinFormsApp/WinFormsApp.csproj) looks like this:
1120811208<Project ToolsVersion =" 15.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
1120911209 ...
1121011210 <ItemGroup >
11211- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
11211+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1121211212 <PrivateAssets >all</PrivateAssets >
1121311213 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1121411214 </PackageReference >
@@ -11336,7 +11336,7 @@ The [project file](/samples/WpfAppNetCore/WpfAppNetCore.csproj) looks like this:
1133611336<Project Sdk =" Microsoft.NET.Sdk" >
1133711337 ...
1133811338 <ItemGroup >
11339- <PackageReference Include =" Pure.DI" Version =" 2.3.3 " >
11339+ <PackageReference Include =" Pure.DI" Version =" 2.3.4 " >
1134011340 <PrivateAssets >all</PrivateAssets >
1134111341 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1134211342 </PackageReference >
0 commit comments