Skip to content

Commit 4344322

Browse files
Updating internal Pure.DI to 2.3.4
1 parent e37f9a1 commit 4344322

170 files changed

Lines changed: 3474 additions & 304 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -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

78027802
Example 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

78087808
Useful when:
78097809
- Properties include custom logic and are referenced by bindings in a dependent setup.
@@ -8281,7 +8281,7 @@ using Shouldly;
82818281
using Pure.DI;
82828282

82838283
DI.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

82948294
DI.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>

AGENTS_MEDIUM.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
})

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<VersionRange>2.3.*</VersionRange>
5-
<InternalVersion>2.3.3</InternalVersion>
5+
<InternalVersion>2.3.4</InternalVersion>
66
<BasePackageId>Pure.DI</BasePackageId>
77
<LangVersion>latest</LangVersion>
88
<!--Make sure that Build.Settings.BaseDotNetFrameworkMajorVersion has been updated.-->

readme/Avalonia.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ The [project file](/samples/AvaloniaApp/AvaloniaApp.csproj) looks like this:
175175
<Project Sdk="Microsoft.NET.Sdk">
176176
...
177177
<ItemGroup>
178-
<PackageReference Include="Pure.DI" Version="2.3.3">
178+
<PackageReference Include="Pure.DI" Version="2.3.4">
179179
<PrivateAssets>all</PrivateAssets>
180180
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
181181
</PackageReference>

readme/BlazorServerApp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ The [project file](/samples/BlazorServerApp/BlazorServerApp.csproj) looks like t
4747
<Project Sdk="Microsoft.NET.Sdk.Web">
4848
...
4949
<ItemGroup>
50-
<PackageReference Include="Pure.DI" Version="2.3.3">
50+
<PackageReference Include="Pure.DI" Version="2.3.4">
5151
<PrivateAssets>all</PrivateAssets>
5252
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5353
</PackageReference>
54-
<PackageReference Include="Pure.DI.MS" Version="2.3.3" />
54+
<PackageReference Include="Pure.DI.MS" Version="2.3.4" />
5555
</ItemGroup>
5656

5757
</Project>

readme/BlazorWebAssemblyApp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ The [project file](/samples/BlazorWebAssemblyApp/BlazorWebAssemblyApp.csproj) lo
4949
<Project Sdk="Microsoft.NET.Sdk.Web">
5050
...
5151
<ItemGroup>
52-
<PackageReference Include="Pure.DI" Version="2.3.3">
52+
<PackageReference Include="Pure.DI" Version="2.3.4">
5353
<PrivateAssets>all</PrivateAssets>
5454
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5555
</PackageReference>
56-
<PackageReference Include="Pure.DI.MS" Version="2.3.3" />
56+
<PackageReference Include="Pure.DI.MS" Version="2.3.4" />
5757
</ItemGroup>
5858

5959
</Project>

readme/Console.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The [project file](/samples/ShroedingersCat/ShroedingersCat.csproj) looks like t
8484
<Project Sdk="Microsoft.NET.Sdk">
8585
...
8686
<ItemGroup>
87-
<PackageReference Include="Pure.DI" Version="2.3.3">
87+
<PackageReference Include="Pure.DI" Version="2.3.4">
8888
<PrivateAssets>all</PrivateAssets>
8989
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
9090
</PackageReference>

readme/ConsoleNativeAOT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The [project file](/samples/ShroedingersCatNativeAOT/ShroedingersCatNativeAOT.cs
1010
<Project Sdk="Microsoft.NET.Sdk">
1111
...
1212
<ItemGroup>
13-
<PackageReference Include="Pure.DI" Version="2.3.3">
13+
<PackageReference Include="Pure.DI" Version="2.3.4">
1414
<PrivateAssets>all</PrivateAssets>
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
</PackageReference>

readme/ConsoleTopLevelStatements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The [project file](/samples/ShroedingersCatTopLevelStatements/ShroedingersCatTop
6969
<Project Sdk="Microsoft.NET.Sdk">
7070
...
7171
<ItemGroup>
72-
<PackageReference Include="Pure.DI" Version="2.3.3">
72+
<PackageReference Include="Pure.DI" Version="2.3.4">
7373
<PrivateAssets>all</PrivateAssets>
7474
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7575
</PackageReference>

readme/EntityFramework.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ The [project file](/samples/EF/EF.csproj) looks like this:
8585
<Project Sdk="Microsoft.NET.Sdk.Web">
8686
...
8787
<ItemGroup>
88-
<PackageReference Include="Pure.DI" Version="2.3.3">
88+
<PackageReference Include="Pure.DI" Version="2.3.4">
8989
<PrivateAssets>all</PrivateAssets>
9090
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
9191
</PackageReference>
92-
<PackageReference Include="Pure.DI.MS" Version="2.3.3" />
92+
<PackageReference Include="Pure.DI.MS" Version="2.3.4" />
9393
</ItemGroup>
9494

9595
</Project>

0 commit comments

Comments
 (0)